Solved

QReport Printer Settings

Posted on 2001-06-28
9
621 Views
Last Modified: 2008-02-01
Hi,

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?
0
Comment
Question by:chrisbee
  • 6
  • 2
9 Comments
 
LVL 3

Expert Comment

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

Best regards,
Alexey Zverev
0
 

Author Comment

by:chrisbee
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.
0
 
LVL 3

Accepted Solution

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

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

by:chrisbee
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.
0
 

Author Comment

by:chrisbee
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.
0
 

Author Comment

by:chrisbee
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.
0
 

Author Comment

by:chrisbee
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.
0
 

Expert Comment

by:CleanupPing
ID: 9343984
chrisbee:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 

Author Comment

by:chrisbee
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.

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

Suggested Solutions

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…
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

763 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