Jump to content
Sign in to follow this  
Henry Olive

PrinterIndex

Recommended Posts

Good Day,

 

I have 2 printers, before print any doc i may change my printer via PrintDialog

with below codes i can print my docs w/o any problem

but when i change the to my second printer ( not default) i get empty paper (no print)

what am i doing wrong ?

QrPreview1.QRPrinter.PrinterIndex:= Printer.PrinterIndex;
QrPreview1.QRPrinter.Print;

 

Thank You

 


 

Share this post


Link to post

if you change the value to "PrinterIndex" it is called "EndDoc", so you have to select the printer before "BeginDoc"

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×