DocIO: WTextBox with Bookmark

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

4 Replies 1 reply marked as answer

JF Jörg Fischer August 13, 2020 02:39 PM UTC

See a full demo attached...

Attachment: SyncfusionTest_28db8b39.zip


MR Manikandan Ravichandran Syncfusion Team August 24, 2020 09:24 AM UTC

Hi Christian,

Thank you for contacting Syncfusion support.

We have reproduced the reported issue with “Bookmarks are removed after save and reload the Word document and Textbox not visible even set Visible property as true” is a defect and we have logged a defect report. We have planned to include this fix in our weekly NuGet release on 8th September 2020.

The status of this bug task (Bookmarks) can be tracked through the below link:
https://www.syncfusion.com/feedback/16999/all-bookmarks-embedded-in-wtextbox-are-removed-after-save-and-reload-of-word

The status of this bug task (Textbox visible) can be tracked through the below link:
https://www.syncfusion.com/feedback/17000/setting-the-visible-property-of-wtextbox-in-a-word-document-to-true-is-ignored

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran
 



MR Manikandan Ravichandran Syncfusion Team September 8, 2020 04:23 PM UTC

Hi Christian,

Thank you for your patience.

Reg- Bookmarks are removed after save and reload the Word document
We have not included the fix in our latest weekly NuGet release due to some testing failures. We have planned include this fix in our weekly NuGet release on 15th September 2020

Reg - Textbox not visible even set Visible property as true
As promised earlier, we have included the fix for the reported issue with “Textbox not visible even set Visible property as true" in our latest weekly NuGet release (v18.2.0.57).

Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.DocIO.WinForms/18.2.0.57

The status of this bug task (Textbox visible) can be tracked through the below link:
https://www.syncfusion.com/feedback/17000/setting-the-visible-property-of-wtextbox-in-a-word-document-to-true-is-ignored

Note: We will integrate this fix in our 2020 Volume 3 Main release which scheduled to be rolled out at end of September 2020

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran 



MR Manikandan Ravichandran Syncfusion Team September 15, 2020 07:28 PM UTC

Hi Christian.

Thank you for your update.

Reg- Bookmarks are removed after save and reload the Word document
As mentioned earlier, we have fixed the reported issue and included in the latest weekly NuGet release (v18.2.0.58).

Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.DocIO.WinForms/18.2.0.58

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/16999/all-bookmarks-embedded-in-wtextbox-are-removed-after-save-and-reload-of-word

Please let us know if you have any questions.

Regards,
Manikandan Ravichandran
 


Marked as answer
Loader.
Up arrow icon