Crystal Report may grow to more than one page...

  • Thread starter Thread starter Tim Frawley
  • Start date Start date
T

Tim Frawley

Crystal Reports product version 9.2.3.611
Developement Environment is VB.NET 2003

I have created a report that has several comment fields and a
subreport. The comment fields are all set to CanGrow and the subreport
grows just fine. When the content of the comment fields or the
subreport is sufficient the report will grow to more than one page.
Unfortunatly when the report is printed it will not print multiple
pages. I only get the first page.

Why is that?
 
Bernie,

Your question made me look at my code again. I am printing directly to
the printer without using a preview option.

crReportDocument = New CWTRelease
crReportDocument.SetDataSource(dsRELEASE)
crReportDocument.PrintToPrinter(1, False, 1, 1)
crReportDocument.Dispose()
crReportDocument = Nothing

I noticed that my start page was set to one and my end page was also set
to one. I set the end page to two and that allows it to grow to two
pages. Unfortunately it appears as though I will have to do some
calculating to see if it could grow to more than two pages unless there
is an easier way...


Thank you for your help!


Tim
 
Hi Tim,

There is an easier way - set the end page to 999 - it won't print beyond
what is required.

HTH,

Bernie Yaeger
 
Back
Top