I have a webapplication that should fill in the Header and Footer with information.
It can be done by updating document properties. When the user changes and saves the record in the database the application updates custom properties in the word document. The problem is that when the user opens the word document he cannot see that the values of the fields have changed before he right-clicks on the grey fields to update them
A similar problem is in this post.
Is there a soloution on this problem or maybe it cant be done?
I try with Bookmarks.
I added a bookmark “MyBookmark” then i do this
Aspose.Word.Word word = new Aspose.Word.Word();
Aspose.Word.Document doc = word.Open(filename);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Font.Italic = true;
Now when I look at the file it has written my “Revision” in the header but the bookmarks are not there. But I use StartBookmark(“MyBookmark”). Why isnt this saved in the document. I tried with differentnames on the bookmark, but it dosent help.