IsOperationGranted - WrongOperation

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

mcanti
User
Posts: 10
Joined: Fri Apr 08, 2011 7:54 am

IsOperationGranted - WrongOperation

Post by mcanti »

Hello,

I'm having a problem with IsOperationGranted.
I want to extract text, therefore I check the copy operation before doing the extraction. On one computer this always fails with the message: Wrong operation (-2112674028)

Code: Select all

                object vDataOut;
                var datain = new object[2];
                datain[0] = (long)1; // document 
                datain[1] = (long)5; // copy operation
                _control.PdfView.DoDocumentVerb(int.Parse(outPar.ToString()), null, "IsOperationGranted", datain, out vDataOut);
What could be wrong here?
mcanti
User
Posts: 10
Joined: Fri Apr 08, 2011 7:54 am

Re: IsOperationGranted - WrongOperation

Post by mcanti »

Actually on that computer was an older ActiveX installed. After installing latest version everything works perfectly.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: IsOperationGranted - WrongOperation

Post by John - Tracker Supp »

Excellent - thanks for coming back :)
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
Tracker Support
http://www.tracker-software.com