QReport Printer Settings

Posted on 2001-06-28
Last Modified: 2008-02-01

Here I am again!
Using 3 QReport's in an application, can set the print settings for each one individually using the PrintSetup procedure, but the settings only effect that report. Cannot copy the settings from the first report to the other two as the QRPrinter property is read-only. The requirement is to set each report up the same from one print setup dialog, is there a way of achieving this?
Question by:chrisbee
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
  • 2

Expert Comment

ID: 6237362
Try to make QuickReport2.QRPrinter.Assign(QuickReport1.QRPrinter);

Best regards,
Alexey Zverev

Author Comment

ID: 6239596
Hi Alzy!
I think I get what you mean, I'll experiment with your idea and see what happens. If I get stuck I'll get back to you. Thanks for the support.
Best wishes................chrisbee.

Accepted Solution

alzv earned 300 total points
ID: 6239632
Always ready to help... I am waiting for your messages...

Best regards,
Alexey Zverev.
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!


Author Comment

ID: 6241052
Hi Alzy!
No luck! Tried what you said but the prog crashed with an access violation.

What you have written is what I'm trying to achieve but delphi 4 won't let me at the moment.
Best wishes...............chrisbee.

Author Comment

ID: 6253535
Hi Alzy!
This seems a tricky one, I have upped the points to 300. I am still trying but no luck- Tried using and 'or' to see if it would work when selecting either of the three print/preview file procedures like in Pascal but no luck yet.
Best wishes.............chrisbee.

Author Comment

ID: 6305799
Hi folks!
It seems a difficult problem though I amm beginning to think that as each file has to be printed separately the settings for portrait and landscape ect, have to be set up for each file before the command to print is sent.  I had hoped I could have carried the command to all the files and printed them all in the same format at the same time from one setting and command. I live in hope!!

Best wishes..............chrisbee.

Author Comment

ID: 6528802
Hi Guys!
Getting bogged down in Delphi with this print prob- perhaps I havn't made it clear as to what I am trying to do. I have three quick reports in the database- income, expenditure and direct debits.

I wish to offer the user the option to print all the data in all three files at one print setting. ie: portrait or landscape, no of pages ect. I can do it separately initialising each print job in turn.

In the code I assigned the print instruction to each file. The first one is ok then the compiler throws a access violation error when the instruction is transferred to the next of the three file variables.  Do I take it that perhaps what I am trying to do is not possible in Delphi?

Here's hoping............chrisbee.

Expert Comment

ID: 9343984
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Author Comment

ID: 9364728
Hi Alzy!
It's been a long time did eventually utilise your ideas though was only able to print the selected file. Have move to C++ now working in linux using FLTK. Thanks for your help in Delphi.


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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