Welcome! Log In Create A New Profile

Advanced

WD12 default printer

Posted by Jan de Bruin 
Jan de Bruin
WD12 default printer
January 26, 2009 09:07PM
Hey..

Is it possible to change the default printer in WinDev..

OR

How to print to a specific printer ?

TIA !!! :joke:
Jan
Arie
Re: WD12 default printer
January 26, 2009 09:35PM
use iConfigure("your_printer") to "select" the printer
followed by iPrintReport (report_name)

iListPrinter() gives you all the printers on your system

Changing the default printer? Sorry, dont know.

Arie
Arie
Re: WD12 default printer
January 26, 2009 09:42PM
Do you mean "change the default windows printer" permanently?
Then you can use CallDLL32("winspool.drv","SetDefaultPrinterA",sPrinterName)

Arie
Jimbo
Re: WD12 default printer
January 26, 2009 09:51PM
Hi,

iConfigure(PrinterName, False)

changes the default printer to the desired one.

Regards,
Guenter
Jan de Bruin
Re: WD12 default printer
January 26, 2009 10:03PM

Thanks and Arie too !!!

It works..

Greetings
Jan


Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: