PC Review


Reply
Thread Tools Rate Thread

changing crystal reports print date in code

 
 
tony
Guest
Posts: n/a
 
      27th Aug 2004
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.


 
Reply With Quote
 
 
 
 
Lucas Tam
Guest
Posts: n/a
 
      28th Aug 2004
"tony" <test> wrote in news:(E-Mail Removed):

> 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 ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to get Crystal Reports to print multiple reports in ASP.NET? Rod Microsoft ASP .NET 2 25th May 2006 03:12 PM
Crystal Reports Does Not Display BLOB Field Correctly in IBlobField Control Using Crystal Reports for VS.NET 2003 Jeff Microsoft Dot NET 0 4th May 2006 09:21 PM
Changing datasource for Crystal Reports =?Utf-8?B?eWFzc2VyY29tNA==?= Microsoft Dot NET 1 9th Dec 2004 02:29 PM
Changing layout of Chart in Crystal Reports 9 dynamically from VB.NET code. Vadim Microsoft VB .NET 2 10th Mar 2004 05:55 PM
Crystal Reports. Changing dataset schema Michelle Stone Microsoft ASP .NET 2 22nd Dec 2003 11:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 PM.