how can one "control" (print) from VB8 thorugh Adobe Reader 7.0 or 8.0

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

anyone know how to use COM object (probably build in into Adobe
Reader) to open, print and close PDF file? I can always do it through
DOS command prompt, but printing 8,000 PDF files a day, we have to
control it manually.

any advise?
 
Joe said:
anyone know how to use COM object (probably build in into Adobe
Reader) to open, print and close PDF file? I can always do it through
DOS command prompt, but printing 8,000 PDF files a day, we have to
control it manually.

any advise?

Here's how I'm currently doing it -

1. Add the Adobe Acrobat Browser Document COM component to your Toolbox.
(Usually AcroPDF.dll)
2. Create a new Windows Form.
3. Place the PDF Control straight onto your blank Form, set its "Dock"
Property to "Fill", then set any Properties you require. (Default
Name=AxAcroPDF1)
4. In the Form Load event: AxAcroPDF1.LoadFile(YourFileNameInHere.pdf)

That's it! You should, of course, add additional code to allow you to
select the file etc. There are a number of Methods (such a "Print")
which will also be available to you.

Hope this helps to get you started.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
Back
Top