Solved

TQuickReport

Posted on 2000-02-21
6
434 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

Technology Partners: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

624 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