?
Solved

How to change printer from Access db

Posted on 2002-05-20
6
Medium Priority
?
1,376 Views
Last Modified: 2007-11-27
I want to change default printer programatically from Access database.  I know how to do it from VB, but it looks like Access VBA does not have Printers collection. I was trying to change rpt.PrtDevName = MyPrinterName, but did not manage to make it work.
Any help will be appreciated.
0
Comment
Question by:iboutchkine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
lmerrell earned 200 total points
ID: 7022534
Here's a link with some different methods.

http://www.mvps.org/access/reports/rpt0009.htm


lmerrell
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7022538
You were close but you also need to set the PrtDevMode it appears.
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7022540
I use a product called Print Batch Manager to do this as well.

http://ourworld.compuserve.com/homepages/attac-cg/ACGPBM.htm
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 28

Author Comment

by:iboutchkine
ID: 7023816
thahk you imerell. I'll try it and let you know
0
 
LVL 28

Author Comment

by:iboutchkine
ID: 7025362
It worked out perfect
0
 
LVL 7

Expert Comment

by:lmerrell
ID: 7025370
Glad I could point you in the right direction.  Have a great day!

lmerrell
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question