By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

changing crystal reports print date in code

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"tony" <test> wrote in news:eV**************@TK2MSFTNGP11.phx.gbl:
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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.