Link to home
Start Free TrialLog in
Avatar of Oli2
Oli2

asked on

TQuickReport

Hi!

I have a TQuickReport component (myQR).
When calling myQR.Print, it alway prints to the default Windows Printer, even if before printing I set
myQR.Printer.PrinterIndex := 4; //(4 is just an example)
or
myQR.QRPrinter.PrinterIndex := 4;

Regards, Oli
Avatar of Igor UL7AAjr
Igor UL7AAjr
Flag of Kazakhstan image

listening...
ASKER CERTIFIED SOLUTION
Avatar of TheNeil
TheNeil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Oli2
Oli2

ASKER

How?
None of these ones work:

myQr.ApplySettings;  //error
myQr.QRPrinter.ApplySettings;   //error
myQr.Printer.ApplySettings;   //error

Regards, Oli
Avatar of Oli2

ASKER

Never Mind, myQr.ApplySettings works...
I'm testing...
Avatar of Oli2

ASKER

.testing done!

All I had to do is:

myQr.PrinterSettings.PrinterIndex := 4;

This works.
Thanks for your help, Neil, it lead me to the right direction.

Regards, Oli
OK, you already received an answer.
I just wanted to tell you that you should use the QR.PrinterSettings and
not the QR.QRPrinter object.

I've made this mistake too .. ;)

greets

 Sascha