Solved

QReport Printer Settings

Posted on 2001-06-28
9
618 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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