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.
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!


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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 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