Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / September 2004

Tip: Looking for answers? Try searching our database.

Specifying a printer in code - Access 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mathilda - 09 Sep 2004 01:29 GMT
I am trying to send a report to a specific, non-default printer in
code, bypassing the preview mode, but I cannot find the code to do so
anywhere.  Can anybody help?
Tony Toews - 09 Sep 2004 04:42 GMT
>I am trying to send a report to a specific, non-default printer in
>code, bypassing the preview mode, but I cannot find the code to do so
>anywhere.  Can anybody help?

You can change the default printer using updates to the INI file and some sample
code.  See DefaultPRT.ZIP at http://www.mcwtech.com/downloads.htm. This MDB has a
combo box where you select the printer.

Finally you can use DevPrtMode however this requires extensive VBA knowledge and is
not for the faint of heart.  Also this won't work in MDEs as you must open reports in
design mode although you can use Automation to open a reports MDB and manipulate it
there.

Tony
--
Tony Toews, Microsoft Access MVP
  Please respond only in the newsgroups so that others can
read the entire thread of messages.
  Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
mathilda - 10 Sep 2004 00:19 GMT
Thanks, that was just the thing.

>>I am trying to send a report to a specific, non-default printer in
>>code, bypassing the preview mode, but I cannot find the code to do so
[quoted text clipped - 10 lines]
>
>Tony
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.