By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,567 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,567 IT Pros & Developers. It's quick & easy.

Print PDF files from Access

P: n/a
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!!
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
CrowT wrote:
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)
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!!

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.