• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

How to change printer of report in visual basic ?

Hi,

Who knows how i can change the printer in visual basic and also how to get a list of installed printers.

My problem is that when printing on different printers (of the same type) the report seems to forget the papersize and the paperfeeder.
Not on my pc but when i install it on a pc of a user who uses another printer (but same type).

I have som reports printing on B5 and some on A4, A5 from the envelopetray and A4 from tray 1. But when the user adds a new printer the settings in the reports are set to the defaults (A4 and auto).

The user prints on different printers, using different applications, and i would like to select the printer automatically in my access application. So the user doesn't have the change his default printer every time he starts my application.
0
jan_l_keersmaekers
Asked:
jan_l_keersmaekers
  • 4
  • 4
1 Solution
 
jan_l_keersmaekersAuthor Commented:
Can i change the default printer using code in ms access 97.

In visual basic
dim x as printer
for x=1 to printers
set x....

But how can i do this in MS Access ?
0
 
believerCommented:
Check out question 10115162. It covers the same topic you are asking about.

Good Luck,
Believer
0
 
jan_l_keersmaekersAuthor Commented:
How do i find question 10115162 ?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
believerCommented:
Well, that's a good question.  I hear the experts referencing questions by number, but I get skunked when I try to search for a question by number.  Maybe you can only search by keywords. Maybe another expert will tell us how to find a question by using the number.

Try Printer, or default ???

Believer
0
 
believerCommented:
P.S.

The search option is at each topic level.
0
 
believerCommented:
Here is the answer I received from EE tech support when I asked about the search feature. Seems like I was leaving out the url:


Hi,

I see the problem, the search engine searches for text, not question
numbers.

All Experts Exchange questions are prefixed with

http://www.experts-exchange.com/EQ.

So the url you need is
http://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=10115162 

Ian
Community Support @ Experts Exchange

0
 
jan_l_keersmaekersAuthor Commented:
Yes,  when i was looking a the screen i suddenly found it.
0
 
jan_l_keersmaekersAuthor Commented:
Happy Holydays
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now