Free Support Forum -

COM-instantiate doc object

The document constructor has 4 overloads. How would I instantiate different ones in COM?

I realize now that parameterized constructors are a .net thing. What I want to do is load a word document and read and then assign values to its bookmarks through COM through ASPOSE.WORD .Since I do not have access to the constructor public Document(string); in COM is there a Load() property for the document that maybe I am just missing.



Thank you for the suggestion. At the moment you can use the Word class to instantiate Document:

Dim Doc
Set Doc = Word.Open(“my.doc”)

See here for more information about using Aspose.Word from COM applications:

Thanks that got things going.