Read all bookmarks

Hi Support,

I’m trying to read all the Bookmarks in a .docx document.

I’m using this code:

string Path = "C:\Temp\Test.docx";
Aspose.Words.Document doc = new Aspose.Words.Document(Path);
for (int i = 0; i <= doc.Range.Bookmarks.Count - 1; i++) {…}

The document “Test.docx” has many pages, but doc.Range.Bookmarks.Count is only returning the number of Bookmarks in the first page of the document.

How can I read the whole number of Bookmarks?

Thanks and regards,
Mariola

Hi

Thanks for your inquiry. Do you use Aspose.Words in evaluation mode? Aspose.Words evaluation version has only two limitations: it limits the maximum number of paragraphs in the document and adds a watermark at the top of the document.
Please request a 30-day Temporary License to test Aspose.Words without evaluation limitations as described here:
https://purchase.aspose.com/temporary-license
And please apply license as described here:
https://docs.aspose.com/words/net/licensing/

Please let me know in case of any issues. I will be glad to help you.
Best regards,

Hi,
I’ve requested the 30-day Temporary License by introducing the order number, but when I try to “Download Lisence” the link doesn’t work.
In IE 8 it shows a blank page, In Firefox, it says:“Error de lectura XML: no se encuentra elemento
Ubicación: https://purchase.aspose.com/temporary-license
Número de línea 1, columna 1:”
Thanks and regards,
Mariola

Hi
Thanks for your request. There are some problems with our site. So please try downloading your license little bit later today. Sorry for inconvenience.
Best regards,

Hi support,

after installing the license, I continue trying to read all bookmarks.
The problem now is that, in a document with 47 bookmarks, doc.Range.Bookmarks.Count only returns 7.

If I read the document.Range.Text variable, it only contains the footer text.
What is the problem now?
I want to read all the bookmarks of all the ranges of the document!!

Thank you

Hi
Mariola,

Thank you for inquiry. it would be great if share input Word document here for testing purpose.

Hi,

I have attached you the document.
If I try to read its bookmarks without modifying the document, I only read 7. If I modify the file and I save the changes overwriting it, I can see all the bookmarks.

Thanks

Hi Mariola,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.0.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved.

Sorry for inconvenience.

Best Regards,

Hi,

I have not still been notified about this problem. Any idea?
I can read the bookmarks with other libraries like Interop, but i’d like to use your component, because I have paid for it.

Regards,

Hi Mariola,

Thanks for your inquiry. Unfortunately, your issue is not resolved yet. The problem occurs because currently Aspose.Words does not support AltChunck tags. We’re not quite sure at the moment when this will be fixed completely. We’re expecting to include the fix of your problem in our next monthly release (v 11.5.0); however, this estimate is not final at the moment. We’ll let you know as soon as we make some progress or resolve the issue completely. We’re sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as WORDSNET-5869) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.