Hi,
How can I programmatically move a bookmark to the top of the list and also the same level as the root bookmark? The code below works as long as it has a destination parent bookmark.
Dim nID As Integer = Inst.Str2ID("op.bookmarks.move", False)
Dim Op As PDFXEdit.IOperation = Inst.CreateOp(nID)
Dim input As PDFXEdit.ICabNode = Op.Params.Root("Input")
input.Add().v = bookmark
Dim options As PDFXEdit.ICabNode = Op.Params.Root("Options")
If dstParentBookmark IsNot Nothing Then options("Parent").v = dstParentBookmark
options("InsertBefore").v = insertBeforeBookmarkNumber
Op.Do()
Any help will be appreciated. Thank you.
programmatically move a bookmark to the top of the list
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: programmatically move a bookmark to the top of the list
Hello docu-track99,
You can always catch the https://sdkhelp.pdf-xchange.com/vi ... oreExecute event and see the insides of the operation by moving the needed bookmark to the needed position manually. There are plenty of samples on this forum on how to use that event.
As for your direct case, try passing the Bookmark's Root node to the Parent CAB node and see if it helps.
Cheers,
Alex
You can always catch the https://sdkhelp.pdf-xchange.com/vi ... oreExecute event and see the insides of the operation by moving the needed bookmark to the needed position manually. There are plenty of samples on this forum on how to use that event.
As for your direct case, try passing the Bookmark's Root node to the Parent CAB node and see if it helps.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ