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.
Cannot set password to Open p/w protrected Doc
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- John - Tracker Supp
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
- Contact:
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
Best regards
Tracker Support
http://www.tracker-software.com
- John - Tracker Supp
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
- Contact:
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
Best regards
Tracker Support
http://www.tracker-software.com