I am probably doing something really stupid, but I cannot get my code to work!!! I have an asp.net website which collects information into a database. At the end of the process I want to write the database fields to bookmarked positions in a word document. I had it working perfectly in Word, but of course that doesnt work when you publish the site.
I have the following code, just to test writing to the document before I pull out the database values. It brings up the correct document, but has not filled in the word "test" to the bookmark. Any ideas what I am doing wrong, and any tips on the best way to do this would be appreciated.
Dim NewDoc As New Aspose.Word.Document("C:\Inetpub\wwwroot\ImportsSite\STCCert.DOC")
Dim builder As New Aspose.Word.DocumentBuilder(NewDoc)
builder.MoveToBookmark("txtAuthNo", True, False)
DocName = Right(NewAppNo, 5) & ".doc"
NewDoc.Save(DocName, Aspose.Word.SaveFormat.FormatDocument, Aspose.Word.SaveType.OpenInBrowser, Response)