cannot explicitly call operator or accessor

May 22, 2013 at 7:31 PM
I´ve "converted" all my code from Interop to NetOffice, except these two lines:
doc.set_AttachedTemplate(globalTemplatePath);
doc.Application.Selection.ParagraphFormat.set_Style("Normal");
The error is: 'NetOffice.WordApi._Document.AttachedTemplate.set': cannot explicitly call operator or accessor (in both lines)

I´ve tried with:
doc.AttachedTemplate = globalTemplatePath;
doc.Application.Selection.ParagraphFormat.Style = "Normal";
But same error. Any idea how to set these properties?

Thanks!
Coordinator
Jun 11, 2013 at 2:07 PM
the declaration in NetOffice 1.5.1.2 is: public class _ParagraphFormat : COMObject {    public object Style{get;set;} } you have access to the style property. did you use the latest release/source state? Sebastian ________________________________