Hi
I am very new to this and have a simple requirement using classic ASP. The first element is to simply open an existing document for editing and I have tried the following:
Dim Word
Dim Doc
Set Word = CreateObject("Aspose.Word.Word")
Set Doc = Word.Open("c:\sorce\apps\tccm\Uploaded\Installation\templates\welcomepack.doc")
However, I get an error stating that the Word object cannot be created. I seem to recall reading that the word object was redundant. If so, how do I use classic ASP to open an existing document?
Thanks
Hi,
I am also trying to open an existing document. I copied your code as above into my ASP web page, but now when I run it I get the following message:
Cannot create ActiveX component. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Line 189:
Line 190: Dim helper
Line 191: helper = CreateObject("Aspose.Words.ComHelper")
Line 192:
Line 193: doc = helper.Open(strDocumentDirectory & strSavePath & strDocumentName & ".doc")
I have included an Imports statement for Aspose.Words.ComHelper at top of the page, but I still get this error message. Any help you can give would be most appreciated.
Thanks very much!
Chris.