?
Solved

Using Ireport PrintOut() function in Delphi

Posted on 2004-11-23
4
Medium Priority
?
1,775 Views
Last Modified: 2008-01-09
I've avoided using the Ireport PrintOut() function till now because I hate its parameter requirements, which need you to specify starting and ending pages of the report being printed.

Now that I have to, how do I use it, ensuring that all the pages, of a varying length report, will be printed?

I envy VB user who can simply go...

> crRpt.PrintOut False

If you try to do this in Delphi, you get a > Not enough actual parameters <  [Error]. You are forced to supply all the parameters even to parameters you want to remain untouched.
0
Comment
Question by:ziche
  • 3
4 Comments
 
LVL 13

Expert Comment

by:vidru
ID: 12658578
Wow, that is annoying (I'm looking at their 'SCR8_Delphi_RDC_ADO' sample).  We use the VCL with Delphi 5 with no problems.

I'll play around with the RDC for a bit and see if I can come up with something.

-dave
0
 
LVL 13

Accepted Solution

by:
vidru earned 200 total points
ID: 12658925
Well, I can't find a way around passing all of the parameters, but this seems to work for me as a way to get all of the pages to print:

  Report.PrintOut(false, 1, true, 1, Report.PrintingStatus.NumberOfPages)

-dave
0
 

Author Comment

by:ziche
ID: 12662335
Wonderful! Thanks dave!
0
 
LVL 13

Expert Comment

by:vidru
ID: 12662419
You're welcome.  Glad that'll work for you.

-dave
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

807 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