DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Can't find bookmarks in word file. DocX

Open hseynli opened this issue 4 years ago • 1 comments

Can't find bookmarks in word file. The code throw Null reference exception when I write

DocX document = DocX.Load("Kart_KART_MUQAVILE_ELAVE_N_1 (1).docx"); Bookmark b = document.Bookmarks[0];

Note that the word document has two or more bookmarks

hseynli avatar Apr 01 '21 06:04 hseynli

Hi,

Can you attach your docx so we can analyse it ? If you run the LiveExplorer, in the Bookmark samples, this should work. This is probably a problem on how Bookmarks are added to the ooxml of your document.

Thank you.

XceedBoucherS avatar Apr 19 '21 17:04 XceedBoucherS