Kevin,
Thank you very much! That worked great (the pdf.ocx). I love this
group!
John
-----Original Message-----
From: Kevin Crider [mailto:criderkevin@a...]
Sent: Tuesday, October 22, 2002 2:50 PM
To: professional vb
Subject: [pro_vb] Re: Printing a PDF File
> I have a PDF file that I need to print from VB. Is there any way I
can
tell VB to just print that document?
Thanks,
John
John:
Try inserting the Adobe pdf OCX. Go to "Project" menu then
to "Components". On the "Controls" tab, click browse and go to the
(usually) "C:\Program Files\Adobe..." folder...look for the file
called "pdf.ocx". Select this. This will add the pdf control to your
list
of controls. Insert this into your form. I believe this control has a
Print method, as well as LoadFile to open your file. If all you need to
do
is Print it, you may want to check out some of the threads on API
Printing
calls, in which you can tell VB the file to print, you may not need the
above.
Kevin
---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059