Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / March 2008



Tip: Looking for answers? Try searching our database.

Trying to open Secured PDF from VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JR - 05 Mar 2008 04:15 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.