changing crystal reports print date in code

  • Thread starter Thread starter tony
  • Start date Start date
T

tony

Is there a way to change the "print date" field in vb/vb.net code? I have a
report that uses keywords like "MonthToDate" and "YearToDate" to genereate
the report, I want to be able to change the relative date to those fields.
Basically exactly like the "set print date and time" dialog box under the
reports menu in crystal reports designer.

So far I have:

Dim cr As New ReportDocument
cr.Load("report.rpt")
crvReport.ReportSource = cr

I tried looking into all the methods/properties of the ReportDocument object
to no avail. Any help or other methods to accomplish the same thing will be
greatly appreciated.
 
tony said:
Is there a way to change the "print date" field in vb/vb.net code? I
have a report that uses keywords like "MonthToDate" and "YearToDate"
to genereate the report, I want to be able to change the relative date
to those fields.

Use an unbound string field and generate your own print date.

You can base the print data on fields in the report or on paramters.
 
Back
Top