Command is disabled currently
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Command is disabled currently
Hi,
Calling functions SignDocument end of the report:
"Command is disabled currently"
even when you call the function EnableCommand
Where I make a mistake?
Thank you Miro
void SignDocument()
{
//Document is OK opened
EnableCommand(36516);
object vDataOut, vDataIn;
try
{
vDataIn = 36516;
vDataOut = null;
PDFX.DoVerb(null, "ExecuteCommand", vDataIn, out vDataOut, 0);
}
catch (Exception ex)
{
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
}
}
void EnableCommand(int cmndID)
{
try
{
string bsVerb = "Commands[#" + cmndID.ToString() + "].State";
object vDataIn = "Online";
PDFX.SetProperty(bsVerb, vDataIn, 0);
}
catch (Exception ex)
{
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
}
}
Calling functions SignDocument end of the report:
"Command is disabled currently"
even when you call the function EnableCommand
Where I make a mistake?
Thank you Miro
void SignDocument()
{
//Document is OK opened
EnableCommand(36516);
object vDataOut, vDataIn;
try
{
vDataIn = 36516;
vDataOut = null;
PDFX.DoVerb(null, "ExecuteCommand", vDataIn, out vDataOut, 0);
}
catch (Exception ex)
{
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
}
}
void EnableCommand(int cmndID)
{
try
{
string bsVerb = "Commands[#" + cmndID.ToString() + "].State";
object vDataIn = "Online";
PDFX.SetProperty(bsVerb, vDataIn, 0);
}
catch (Exception ex)
{
ShowErrorMessage(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
}
}
Last edited by miromr on Wed Jan 09, 2013 8:52 am, edited 2 times in total.
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm
Re: Command is disabled currently
Hi miromr,
Thank you for your post.
In order to sign the document, you need to: open a PDF document, enable the command 36516 and then execute the command.
Thanks.
Sincerely,
Thank you for your post.
In order to sign the document, you need to: open a PDF document, enable the command 36516 and then execute the command.
Thanks.
Sincerely,
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Re: Command is disabled currently
Hi Nico
My version Viewer is 2.5 Build207, VS2010 an Windows 7 pro 64 bits.
Before signing I call enable command.
The problem persists.
Miro
My version Viewer is 2.5 Build207, VS2010 an Windows 7 pro 64 bits.
Before signing I call enable command.
The problem persists.
Miro
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Re: Command is disabled currently
When I open the same document in the application FullDemo for c #.
And 36516 the command is set to offline, the message is:
"Command is turned off" and not
"Command is disabled currently"
as in the case of my application.
Miro
And 36516 the command is set to offline, the message is:
"Command is turned off" and not
"Command is disabled currently"
as in the case of my application.
Miro
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Command is disabled currently
Thanks for the details Miro,
We are checking this and will post further comments here shortly.
Best,
Stefan
We are checking this and will post further comments here shortly.
Best,
Stefan
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Command is disabled currently
Hi, Miro
Can you use the 'Sign Document' feature for the same document in our standalone viewer (in our end-user application) ?
Maybe for your document the digital signing is not allowed..
Thanks.
Can you use the 'Sign Document' feature for the same document in our standalone viewer (in our end-user application) ?
Maybe for your document the digital signing is not allowed..
Thanks.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm
Re: Command is disabled currently
Hi Miro,
Thank you for your post.
Please let me ask you:
Sincerely,
Thank you for your post.
Please let me ask you:
- When you open the document, enable the command 36516 and then execute the command 36516, do you get the exception?
- While you have the document opened, can you disable command 36516?
- Does this happen with all PDF documents?
Sincerely,
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Re: Command is disabled currently
Hi VasylVasyl-Tracker Dev Team wrote:Hi, Miro
Can you use the 'Sign Document' feature for the same document in our standalone viewer (in our end-user application) ?
Maybe for your document the digital signing is not allowed..
Thanks.
With PDF XChange Viewer no problem.
Miro
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Re: Command is disabled currently
Hi
The problem is solved:
New version PDF Viewer and old version viewer SDK.
Thank you very much
Miro
The problem is solved:
New version PDF Viewer and old version viewer SDK.
Thank you very much
Miro
-
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: Command is disabled currently
Hi miromr,
Thanks for letting us know, we're glad you fixed the issue. Please let us know if we can do anything else to help!
Have a great day
Thanks for letting us know, we're glad you fixed the issue. Please let us know if we can do anything else to help!
Have a great day

If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
- User
- Posts: 59
- Joined: Sat May 09, 2009 3:05 pm
Re: Command is disabled currently
thank you very much
miro
miro
-
- Site Admin
- Posts: 7361
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Command is disabled currently

Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com