changing crystal reports print date in code

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.
 
L

Lucas Tam

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top