dbTalk Databases Forums  

Specify "PDF" as my printer from VBA

comp.database.ms-access comp.database.ms-access


Discuss Specify "PDF" as my printer from VBA in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Agee
 
Posts: n/a

Default Specify "PDF" as my printer from VBA - 02-01-2005 , 12:01 PM






There are times in my database that I might like to output some things to a
PDF file instead of the the normal printer.
Is there a way, via VBA, to switch back and forth between my regular printer
and a PDF output file, and if yes, how is that done?



Reply With Quote
  #2  
Old   
Parts Manager
 
Posts: n/a

Default Re: Specify "PDF" as my printer from VBA - 02-10-2005 , 04:14 PM






"Bill Agee" <wscs (AT) mindspring (DOT) com> wrote
Quote:
There are times in my database that I might like to output some things to
a
PDF file instead of the the normal printer.
Is there a way, via VBA, to switch back and forth between my regular
printer
and a PDF output file, and if yes, how is that done?

I think when I installed Adobe that it came with a print driver for PDF. So
it might seem that you could print to the PDF file by selecting the printer.
I am assuming by the post you made that you installed the PDF printer (Save
to disk) drivers as well as the software. I know at home I sometimes will
tell the print selection to use the PDF driver to save instead of actually
printing to a physical device. Sometimes I only want to reference something
later, but don't want a hard copy; so this is a nice use of that driver
also.

Tim





Reply With Quote
  #3  
Old   
magmike
 
Posts: n/a

Default Re: Specify "PDF" as my printer from VBA - 02-17-2005 , 01:41 AM



It is also important to note, that you have to have a full functioning
version of Acrobat. The reader is not enough.

Mike

--
MEDICATION ASSISTANCE PROGRAM
Qualifying applicants get their medication free.
It's easy to qualify. Use the qualification wizard at
http://www.rexaid.com




"Parts Manager" <partsmanager (AT) howardmoe (DOT) com> wrote

Quote:
"Bill Agee" <wscs (AT) mindspring (DOT) com> wrote
There are times in my database that I might like to output some things to
a
PDF file instead of the the normal printer.
Is there a way, via VBA, to switch back and forth between my regular
printer
and a PDF output file, and if yes, how is that done?


I think when I installed Adobe that it came with a print driver for PDF.
So it might seem that you could print to the PDF file by selecting the
printer. I am assuming by the post you made that you installed the PDF
printer (Save to disk) drivers as well as the software. I know at home I
sometimes will tell the print selection to use the PDF driver to save
instead of actually printing to a physical device. Sometimes I only want
to reference something later, but don't want a hard copy; so this is a
nice use of that driver also.

Tim






Reply With Quote
  #4  
Old   
J. Clay
 
Posts: n/a

Default Re: Specify "PDF" as my printer from VBA - 02-17-2005 , 03:13 PM



if you are using Access 2k2 and above, you have the availability to set the
output printer using Set Application.Printer. We use PDF995 to print to pdf
on specific reports and use code similar to the following:

Set Application.Printer = Application.Printers("PDF995") 'Set the output
printer
DoCmd.OpenReport "ReportName" 'Print
Report
Set Application.Printer = Nothing
'Reset printer to default.

HTH,
J. Clay


"Bill Agee" <wscs (AT) mindspring (DOT) com> wrote

Quote:
There are times in my database that I might like to output some things to
a
PDF file instead of the the normal printer.
Is there a way, via VBA, to switch back and forth between my regular
printer
and a PDF output file, and if yes, how is that done?







http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.