Scenario: I have a PDF document stored as follows:
c:\Files\MyDoc.pdf
On an Access form, I have a 'Preview' button and a 'Print' button.
Specifically, what code do I write to:
a. Preview the pdf document (Note: It does not need to preview in
some kind of embedded control on the form; it just needs preview the
file in whatever application is easiest; installing any specialty
applications other than IE or Acrobat is not an option)
b. Print the pdf document automatically (ie, when the user pushes
the 'Print' button, the pdf document goes straight to the printer with
no preview or user intervention)
Thanks!!
Salad - 30 Sep 2004 23:03 GMT
> Scenario: I have a PDF document stored as follows:
> c:\Files\MyDoc.pdf
[quoted text clipped - 5 lines]
> file in whatever application is easiest; installing any specialty
> applications other than IE or Acrobat is not an option)
You might try the code at http://www.mvps.org/access/api/api0018.htm.
Or perhaps look at Shell.
> b. Print the pdf document automatically (ie, when the user pushes
> the 'Print' button, the pdf document goes straight to the printer with
> no preview or user intervention)
Don't know. Does Acrobat allow parameters to be passed to it? THat'd
be the easiest. Maybe go to Tucows http://www.tucows.com and see if
there is a utility to print PDF files on the fly. Or check at
http://groups.google.com in advanced search for printing them.
> Thanks!!