Hi Aspose team,
In .NET, I have trouble with bookmark content inserting like this :
-
I have 2 bookmarks “BM_Cell1” and “BM_Cell2” in table cells like image below (the second is next to the first)
image.png (3.4 KB) -
I used document builder to write texts into each bookmarks, but 2 texts are written into BM_Cell1.
Here is my sample code :public void InsertTextToBookmarks (Document asposeDocument) { var documentBuilder = new DocumentBuilder(asposeDocument); documentBuilder.MoveToBookmark("BM_Cell1"); documentBuilder.Write("This is Bookmark cell 1"); documentBuilder.MoveToBookmark("BM_Cell2"); documentBuilder.Write("This is Bookmark cell 2"); asposeDocument.Save("C:\\Temp\\Template.doc"); }
Here is my document : Template.zip (63.0 KB)
This is image of the issue : image.png (15.8 KB)
Do you have any clue in this case ?
Thank in advance