ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Default printer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

122 Posts

Posted - Jul 07 2019 :  10:02:28  Show Profile  Reply
Is it possible to define a default printer in order to print an image without opening the print dialog?

xequte

38176 Posts

Posted - Jul 07 2019 :  15:32:34  Show Profile  Reply
Hi

You don't change the default printer, you change the active printer by set the Printer.PrinterIndex:

http://docwiki.embarcadero.com/Libraries/Rio/en/Vcl.Printers.TPrinter.PrinterIndex

Setting to -1 uses the default printer, otherwise set to an index. The Printers property contains a list of installed printers.

http://docwiki.embarcadero.com/Libraries/Rio/en/Vcl.Printers.TPrinter.Printers

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: