How to change the default printer from VB 
Author Message
 How to change the default printer from VB

Quote:

> May seem like stupid question but, does anyone know of a simple way to
>temporarily change the default printer from VB.  

vb3 OR vb4?  In VB4, look for help under PRINTER object.

 ------------------------------------------------------------
  Andrew Retallack  - Johannesburg, South Africa

 "The views expressed above are figments of your imagination"



Mon, 20 Jul 1998 03:00:00 GMT  
 How to change the default printer from VB

infinite reservoirs of wisdom:

Quote:
>May seem like stupid question but, does anyone know of a simple way to temporarily change the default printer
>from VB.  I need to change the printer to the Fax/modem driver, print to the fax then automatically switch back
>to the previous default printer.
>Any help would be appreciated, sample code, name of a 3rd party product, anything.

Get pprtr47.zip from any big ftp site (like ftp.winsite.com).

Jens
--
Everything I said are the opinions of someone else.
I just cut-and-pasted.

Jens Balchen jr.       http://www.sn.no/~balchen



Mon, 20 Jul 1998 03:00:00 GMT  
 How to change the default printer from VB
May seem like stupid question but, does anyone know of a simple way to temporarily change the default printer
from VB.  I need to change the printer to the Fax/modem driver, print to the fax then automatically switch back
to the previous default printer.

Any help would be appreciated, sample code, name of a 3rd party product, anything.

Thanks in advance.
J.Ribeiro



Mon, 20 Jul 1998 03:00:00 GMT  
 How to change the default printer from VB


=>>
=>> May seem like stupid question but, does anyone know of a simple way to
=>>temporarily change the default printer from VB.  
=>
=>vb3 OR vb4?  In VB4, look for help under PRINTER object.
=>
=> ------------------------------------------------------------
=>  Andrew Retallack  - Johannesburg, South Africa

=> "The views expressed above are figments of your imagination"

I'm trying to work-out the same thing in VB3.



Sun, 26 Jul 1998 03:00:00 GMT  
 How to change the default printer from VB


Quote:



>=>>
>=>> May seem like stupid question but, does anyone know of a simple way to
>=>>temporarily change the default printer from VB.  
>=>
>=>vb3 OR vb4?  In VB4, look for help under PRINTER object.
>=> ------------------------------------------------------------
>=>  Andrew Retallack  - Johannesburg, South Africa

>I'm trying to work-out the same thing in VB3.

In VB3 - Use something like

  GetProfileString("WINDOWS", "DEVICE", "", cDevice, 127)

to get the current default printer (save it for later?). Then use
something like

  WriteProfileString("WINDOWS", "DEVICE", cNew)

to change to a new printer. Also, tell any other apps running that
win.ini has changed using -

  PostMessageByString(HWND_BROADCAST, WM_WININICHANGE, 0, "WINDOWS")

I hope this helps.
--



Sun, 26 Jul 1998 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How do I change the Default Printer from VB

2. To change the Default printer from VB program [URGENT]

3. how do i change the default printer in VB w/o user interface

4. Macro to change default printer and then restore original default printer settin

5. Changing Printers property reset printer to Windows default printer

6. how do I change the default printer in VB?

7. how do I change the default printer in VB?

8. how do i change the default printer in VB w/o user interface?

9. How to change system default printer in VB application?

10. how do i change the default printer in VB w/o user interface?

11. Macro that selects printer and prints doc also changes default printer

12. Problem setting the active printer of Word 97 without changing the Windows default printer

 

 
Powered by phpBB® Forum Software