Using X8 and Visual Studio 2015 Community Edition.
Sample code below gives a compile error of - "Error CS1955 Non-invocable member 'IVGDocument.Properties' cannot be used like a method."
private void corelApp_WindowActivate(Corel.Interop.VGCore.Document doc, Corel.Interop.VGCore.Window window){ if (!doc.Properties.Exists("Property Name", 1)) { doc.Properties("Property Name", 1) = "Value"; }
}
Any ideas pls.
Regards
Steve
Document.Properties is a ready only properties.
There is an article in the docs and tutorials section of this web site which seems to suggest you can set a property, at least in a VBA macro.
See the article here.
It says:
"All of the above shortcomings are resolved by Properties object which is available on Document, Page,Layer, and Shape classes in CorelDRAW/Corel DESIGNER’s object model. Each Properties object can hold unique string specific for a concrete solution. "
Shape.Properties is only ready too, In C# this article don't work nicely, i try many time, please take a look.
community.coreldraw.com/.../datafield-erro