Solved

TQuickReport

Posted on 2000-02-21
6
432 Views
Last Modified: 2008-02-20
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
0
Comment
Question by:Oli2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2542666
listening...
0
 
LVL 5

Accepted Solution

by:
TheNeil earned 50 total points
ID: 2542720
Try using the ApplySettings method straight after you set the PrinterIndex (i.e. before you do anything else)

e.g.

Set the printer index
Use the ApplySettings method
Print your data

The Neil
0
 
LVL 1

Author Comment

by:Oli2
ID: 2543573
How?
None of these ones work:

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

Regards, Oli
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Oli2
ID: 2543581
Never Mind, myQr.ApplySettings works...
I'm testing...
0
 
LVL 1

Author Comment

by:Oli2
ID: 2543607
.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
0
 

Expert Comment

by:Freaky
ID: 2551939
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 124
FMX and jaudiotracker playing memory stream 29 108
firemonkey keyboard covers the controls 1 83
Delphi: barcode reading on android platform 1 101
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question