Solved

QReport Printer Settings

Posted on 2001-06-28
9
610 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
 

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

20 Experts available now in Live!

Get 1:1 Help Now