Solved

TQuickReport

Posted on 2000-02-21
6
425 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
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

774 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