Cannot set password to Open p/w protrected Doc

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

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
Davidpol
User
Posts: 15
Joined: Tue May 29, 2007 5:01 pm
Location: Hawthorne NY 10532-2146
Contact:

Cannot set password to Open p/w protrected Doc

Post by Davidpol »

Trying to open the password protected for opening document using verb "Documents.Open"

As DataIn parameter I'm using SAFEARRAY that consists 2 elements.
First element in the array is a DocumentName, and 2nd one is a password for opening:

The second element of the array is ignored and I'm still asked for the password.

Code in Delphi7 looks like:
var
OpenFileData, old: OleVariant;
begin
...
OpenFileData:= VarArrayCreate([0, 1], varOleStr);
OpenFileData[0]:= aFileName;
OpenFileData[1]:= WideString('xxxxxx');
aCoPDFXCview.DoVerb('Documents.Open', OpenFileData, oId, 0);
...
end

Cannot set the password to open document password protected document.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Post by John - Tracker Supp »

Hi David - is this using the latest build 1.022 ?
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
Davidpol
User
Posts: 15
Joined: Tue May 29, 2007 5:01 pm
Location: Hawthorne NY 10532-2146
Contact:

Post by Davidpol »

Just install the new update. Problem is solved and we cna close this issue.

Thanks...
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Post by John - Tracker Supp »

Excellent - thanks David.
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
Post Reply