This project has moved and is read-only. For the latest updates, please go here.

cannot explicitly call operator or accessor

May 22, 2013 at 8:31 PM
I´ve "converted" all my code from Interop to NetOffice, except these two lines:
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?

Jun 11, 2013 at 3:07 PM
the declaration in NetOffice 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 ________________________________