As far as I can tell I need a COM Wrapper for Aspose.Words to write ASP code to call Aspose.Words objects to search and replace merge fields, and coded values, inside Word documents. I’ve completed code in C# that does this, but when I search you site for help on “COM Wrapper” or “CCW” I get very limited results; only one example.
Below I’ve tried the one example I found, but ASP doesn’t like it and the error follows.
<% '// Open the word document set objWord = Server.CreateObject("Aspose.Words.Words") '// License the file dim AsposeLicenseFile AsposeLicenseFile = "C:\svn\branch\sg\www\reverse.seattlemortgage.com\Aspose\Aspose.Words.lic" objWord.SetLicenseCOM AsposeLicenseFile set doc = objWord.Open("c:\temp\test.doc") %>
ASP Error Information:
File: /AsposeCCW/DocUpload.asp 
Category: Server object
Description: Server.CreateObject Failed
Number: 0x800401F3 (-2147221005)
ASPDescription: Invalid class string
Can anyone give me some direction?