|
Subject:
|
Open PDF within vb6
|
|
Posted By:
|
Jade08
|
Post Date:
|
5/13/2008 8:05:50 AM
|
Hello, I'm trying to open a document in PDF format within my VB6 app. I've tried googling this but haven't come across any clear directions. Can anyone help or direct to a site that may assist, please?
|
|
Reply By:
|
Raghavendra_Mudugal
|
Reply Date:
|
5/13/2008 11:10:08 AM
|
Hi,
refer the "Adobe Acrobat 7.0 Browser Control Type Library" from the components (that is AcroPDF.dll) which comes with the acrobat reader. You will see the physical control in the tool box, drag it to the form as set as needed. Then in the form load or on the button click call this...
me.AcroPDF1.LoadFile (<filename>)
It will loads the file as needed.
This control or dll can also be shipped easily in the .msi installer package on any client pc. Check this.
Hope this helps.
With Regards, Raghavendra Mudugal
|
|
Reply By:
|
Jade08
|
Reply Date:
|
5/13/2008 4:01:28 PM
|
Good afternoon Raghavendra, Thank you for replying. I added the component that you suggested, pull the control onto a form, but as i did this i got a message saying that Adobe reader that is running cannot be used to view PDF files in a webbrowser and suggest i exit. If i click 'OK' and try to proceed, i get a unspecified system error and it crashes the application. Any thoughts on this?
|
|
Reply By:
|
Raghavendra_Mudugal
|
Reply Date:
|
5/14/2008 12:46:36 AM
|
okay...
check for this file in program files folder (C:\Program Files\Adobe\Acrobat 7.0\ActiveX...) - AcroPDF.dll (file ver... 7.0.5.0 - pdfshell.dll (file ver... 7.0.0.0)
I am using these files for component reference, and i am not seeing any error here. Even I can open multiple instance of this component and load diff files, but you cannot open one file from component and the reader, it will be shared lock.
Post some more information here with your pc's existing version file and your code snippet on how you are processing....
this like should work... Me.AcroPDF1.LoadFile "c:\f1.pdf"
Hope this helps...
With Regards, Raghavendra Mudugal
|
|
Reply By:
|
Jade08
|
Reply Date:
|
5/14/2008 8:49:42 AM
|
Morning Raghavendra, After reading your reply, I checked the folder and those Dlls were not in there. The folder was empty. Then i realized that i have Acrobat 5.0 installed and 8.0 Reader. As regards the codes, well i was trying to use your suggession. Ofcourse they can't work, since the component is not functioning. I hope this is enough information for you. Thanks so far for you help.
|
|
Reply By:
|
Raghavendra_Mudugal
|
Reply Date:
|
5/14/2008 9:37:23 AM
|
hi;
check this like might help you forever- http://www.adobe.com/devnet/acrobat/?tab:downloads=1/
when developing apps, first check point is tools what we need and are we having it... without active x component how are you trying? And Please let me know what adobe component you see in the component dialog box in VB6 and the path where it is located.
hope this helps
With Regards, Raghavendra Mudugal
|
|
Reply By:
|
Jade08
|
Reply Date:
|
5/14/2008 10:50:08 AM
|
Hi, The decision to include the user manual (PDF file) in the application came close to the end of development. The Adobe component i'm seeing is Adobe Acrobat 7.0 Browser Control Type Library 1.0. The ocx file for this component is stored in my WINNT folder on my C drive.
|