Hi,
I found a problem with DocIO: If a document contains a bookmark in a WTextBox and you simply load and save the document twice(!), the bookmark is gone.
After saving the first time the file size decreases but the bookmark is still there and after the second time the file size decreases again and the bookmark is missing.
Code is simple as that, demo file attached:
using (WordDocument doc = new WordDocument(@"D:\Temp\Test.docx"))
{
doc.Save(@"D:\Temp\Test2.docx");
doc.Close();
doc.Dispose();
}
using (WordDocument doc = new WordDocument(@"D:\Temp\Test2.docx"))
{
doc.Save(@"D:\Temp\Test2.docx");
doc.Close();
doc.Dispose();
}
And another problem is if I set the IsVisible property to false, save, load and set it to true, save again the WTextBox is still set invisible.
Version: 18.2.0.45
Attachment:
test_ab19f2c6.zip