Free Support Forum - aspose.com

Save position in document

Hi support,

I need to save the current position in the document, before moving to a bookmarked position. The option of inserting a new bookmark is excluded. I just want to know where to revert after writing in the bookmarked area, without adding content to the document.

Regards,
Milan

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for your inquiry. You can use CurrentNode property to get current position of DocumentBuilder and then use MoveTo method to move cursor back. See the following links for more information.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/detecting-the-current-cursor-position.html

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/moving-to-any-node-paragraphs-and-their-children.html

Best regards.