Solved

TQuickReport

Posted on 2000-02-21
6
418 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
Comment Utility
listening...
0
 
LVL 5

Accepted Solution

by:
TheNeil earned 50 total points
Comment Utility
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
Comment Utility
How?
None of these ones work:

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

Regards, Oli
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

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

Author Comment

by:Oli2
Comment Utility
.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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now