User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 429,777 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,881 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 349 | Replies: 0
Reply
Join Date: Jul 2008
Posts: 5
Reputation: splitfinity is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
splitfinity splitfinity is offline Offline
Newbie Poster

Getting a PDF File to run from VB6

  #1  
Jul 17th, 2008
Hi guys
Im trying to get a pdf file (I'm using as a help file in an app)
to open up when the help button is clicked.

This is the code i am currently using:
Private Sub DisplayInstructionManual()

Dim AcrobatReader as String
Dim pdfFile as String

AcrobatReader = "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32"
pdfFile = "file path here"
Shell AcrobatReader & "" & pdfFile, vbMaximizedFocus

End Sub
This works all fine on my dev machine, but when i compile an run on other machines it does nothing when i try to run. I have installed acrobat reader on the machines that i want this to work on and the pdf file is located in the appropriate directory. I've also tried using app.path in the pdfFile path but same result. Any help would be greatly appreciated.

Thanks
Last edited by Tekmaven : Jul 17th, 2008 at 4:25 am. Reason: Code tags
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 3:57 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC