cmd.document.signatures.placesign SOLVED
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
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: 211
- Joined: Sun Aug 05, 2012 5:20 pm
cmd.document.signatures.placesign
Hi, I need to know how to find if this tool has been activated, but I find that annot.type is "Stamp" and activetool = "Stamp"
I tried to check for event fired when button is clicked, but the e.newStampThumbs which fires is the same as for thumbs in stamps collection, so I need to find the cmd.ID I believe, but how do I get that, to test if equal to p_uiInst.CmdManager.cmd(frmPdfEditNew.PDF.Inst.Str2ID("cmd.document.signatures.placesign")).ID
Reason is I want to insert a time date stamp under this type of annotation, but not other stamp type annotations.
Thanks
CE
I tried to check for event fired when button is clicked, but the e.newStampThumbs which fires is the same as for thumbs in stamps collection, so I need to find the cmd.ID I believe, but how do I get that, to test if equal to p_uiInst.CmdManager.cmd(frmPdfEditNew.PDF.Inst.Str2ID("cmd.document.signatures.placesign")).ID
Reason is I want to insert a time date stamp under this type of annotation, but not other stamp type annotations.
Thanks
CE
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Hello Clifford,
You can use the method described here:
https://forum.pdf-xchange.com/ ... 82#p108382
Cheers,
Alex
You can use the method described here:
https://forum.pdf-xchange.com/ ... 82#p108382
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
Hi well, here I go again vb6, translated the code with a class in vb6 but can't get the onNotify to fire at all, so I guess I'll go the easy route and just add my own button to my own toolbar, and execute the action from there and hide on the toolbar. So hard this new control, before life was easy, sad to not have an event for button click directly that vb6 users could use, but oh well.
ce
ce
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Hello Clifford,
Can you please give us your translated code so that we can test it in our environment?
Cheers,
Alex
Can you please give us your translated code so that we can test it in our environment?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
Fast answer but please read my question first my friend. Cmd Handler does NOT work in vb6, does not fire the onNotify event at all, so to go around that, I wanted to execute the command and that way I would know what command was clicked,
Thanks
Thanks
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
Why cannot you just fix the bug with the ExecUI command and be done with that, it does not execute, and I have wasted many many hours creating a separate class module to invoke the cmd handler, and oh well, I just want at least this to work.
CE
CE
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
sorry, I thought you were replying to my latest post, see that one
https://forum.pdf-xchange.com/ ... 66&t=29133
ce
https://forum.pdf-xchange.com/ ... 66&t=29133
ce
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Hello Clifford,
Replied you there. And again, I will ask you for your IUIX_CmdHandler class implementation if you want us to investigate this issue, because we are not VB6 experts and we will spend much time to translate it.
As for the handler itself, by inspecting the command itself, from what I see, you will have to monitor a OnGetItemSubMenu method.
Cheers,
ALex
Replied you there. And again, I will ask you for your IUIX_CmdHandler class implementation if you want us to investigate this issue, because we are not VB6 experts and we will spend much time to translate it.
As for the handler itself, by inspecting the command itself, from what I see, you will have to monitor a OnGetItemSubMenu method.
Cheers,
ALex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
By the way, searching in the events list I found these two undocumented events:
e.uiCmdBeforeExecute = 2391
e.uiCmdExecuted = 2392
Neither fires clicking any of the buttons, are they supposed to? would be great if they did, to avoid the cmdhandler issue
ce
e.uiCmdBeforeExecute = 2391
e.uiCmdExecuted = 2392
Neither fires clicking any of the buttons, are they supposed to? would be great if they did, to avoid the cmdhandler issue
ce
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Hello Clifford,
I will quote myself again:
Cheers,
Alex
I will quote myself again:
That command is not being executed thus the events are not being fired. As fro the documentation - I've done first half of the Events - working on the second one.You cannot execute a command that does nothing - it's only a submenu container that's all.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
Again, there are not any commands that fire those events, not one, and fine, I'll let it alone
ce
ce
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
These events are being fired before and after the execution of the commands not the popup menu showing.
Cheers,
Alex
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
Try it, no not one of them fires, I clicked every button on the cmd bars, not one fires, but just drop it, just going to eliminate this feature
ce
ce
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Have you enabled this event for listening in the IPXV_Control?
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
on loading the project I loop through every single event found, and enable it, and I tried the OnGetItemSubMenu does not fire either, so I give up, thanks anyway.
For j = 1 To 10000
sString = PDF.Inst.ID2Str(j)
Call PDF.EnableEventListening2(j, True)
' If Err.Number = 0 Then
' Debug.Print i, sString
' End If
Err.Clear
Next j
For j = 1 To 10000
sString = PDF.Inst.ID2Str(j)
Call PDF.EnableEventListening2(j, True)
' If Err.Number = 0 Then
' Debug.Print i, sString
' End If
Err.Clear
Next j
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign
Well then that's something VB6 related then - all of my advised methods work well in C#/C++.
Cheers,
Alex
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
Re: cmd.document.signatures.placesign
You can now close this item, was related to the other
Thanks
CE
Thanks
CE
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: cmd.document.signatures.placesign SOLVED
Marking as closed then.
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ