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 / COM / October 2005



Tip: Looking for answers? Try searching our database.

how to Access PDF files??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 23 Aug 2005 16:15 GMT
Hi Guys,

Just a short note to ask for a little advice or a push in the right
direction. I have recently been asked to transfer all our exsiting word
documents over on the server to PDF format. The only snag being is that I
don't know how to write the code that will open up a PDF file from within a
VB6 application to access them. I suppose I am looking for some VB6 code
that I can put behind a command button, which will when clicked bring up the
PDF file in question and display it on the desktop.

Many thanks in advance.
Ken Halter - 23 Aug 2005 16:30 GMT
> Hi Guys,
>
[quoted text clipped - 9 lines]
>
> Many thanks in advance.

What do you mean by "Access". If all you want to do is open and view,
there's an Adobe OCX that ships with Acrobat Reader you can drop on a form
and use to show PDF files. If you want to launch Acrobat, or whatever the
application is that's associated with the PDF extension, you can use the
ShellExecute API. If you want to edit PDFs, you'll have to buy (it may be
free, can't recall) the Adobe SDK.

Signature

Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..

Ken Halter - 23 Aug 2005 16:37 GMT
> What do you mean by "Access". If all you want to do is open and view,

Don't answer here. Answer in GD where your other thread is.

Signature

Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..

Dene - 29 Oct 2005 21:29 GMT
> > Hi Guys,
> >
[quoted text clipped - 16 lines]
> ShellExecute API. If you want to edit PDFs, you'll have to buy (it may be
> free, can't recall) the Adobe SDK.

Hi Ken,
If the Adobe OCX control can display PDF files from within VB without having
to shell a copy of Reader then it is exactly what I want.

I have loaded the PDF.OCX into the projects components and set the src
property to the path and name of the pdf file in question, enclosing the
network path in quotes. When I run the project and click on the button I get
a blank control. No error messages through.

What am I doing wrong?

the network path is"
"\\Dene\d\My Documents\FlightGear Downloads\AIP Documents\Wellington
(WN)\NZWN_41.1_41.2.pdf"

TIA
Dene
 
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.