Command is disabled currently

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Command is disabled currently

Post by miromr »

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));
}
}
Last edited by miromr on Wed Jan 09, 2013 8:52 am, edited 2 times in total.
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Command is disabled currently

Post by Nico - Tracker Supp »

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,
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: Command is disabled currently

Post by miromr »

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
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: Command is disabled currently

Post by miromr »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Command is disabled currently

Post by Stefan - PDF-XChange »

Thanks for the details Miro,

We are checking this and will post further comments here shortly.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Command is disabled currently

Post by Vasyl - PDF-XChange »

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.
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.
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Command is disabled currently

Post by Nico - Tracker Supp »

Hi Miro,

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?
Thanks.

Sincerely,
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: Command is disabled currently

Post by miromr »

Vasyl-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.
Hi Vasyl
With PDF XChange Viewer no problem.
Miro
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: Command is disabled currently

Post by miromr »

Hi
The problem is solved:
New version PDF Viewer and old version viewer SDK.

Thank you very much
Miro
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Command is disabled currently

Post by Will - Tracker Supp »

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 :-)
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
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: Command is disabled currently

Post by miromr »

thank you very much
miro
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7361
Joined: Wed Mar 25, 2009 10:37 pm

Re: Command is disabled currently

Post by Paul - PDF-XChange »

:)
Best regards

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