Can anyone explain this PDF & Visual Basic issue to me...?
I've got a PDF manual that I received from a vendor that's password
protected against changes, but can be viewed and printed.
If I do a Start | Run | g:\test\manual.pdf, the file opens in the Windows
associated program (Acrobat Reader) with the titlebar showing "Manual.pdf
(SECURED)".
When in Visual Basic, if I issue a ShellExecute command that basically does
the same thing, but I get a "File Not Found" error returned and Acrobat
never opens.
I know the VB code is correct because on non-password protected pdfs, both
ways work identical. I don't understand why it'll open using Windows just
fine but when called from VB it errors.
Any help would be greatly appreciated. Thanks...JR
Jim Mack - 05 Mar 2008 13:45 GMT
> Can anyone explain this PDF & Visual Basic issue to me...?
>
[quoted text clipped - 12 lines]
> pdfs, both ways work identical. I don't understand why it'll open
> using Windows just fine but when called from VB it errors.
YOU may 'know' the VB code is correct, but we don't. You really have
to post your code -- not just similar code, but cut and pasted from
your app. Then you might get a useful response.

Signature
Jim Mack
MicroDexterity Inc
www.microdexterity.com
Sinna - 06 Mar 2008 07:28 GMT
> Can anyone explain this PDF & Visual Basic issue to me...?
>
[quoted text clipped - 14 lines]
>
> Any help would be greatly appreciated. Thanks...JR
The only thing I can imagine is that you don't provide the working
folder in the ShellExecute API.
Please post the code containing the ShellExecute call.
Sinna