Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a problem to set the PrintDate to the report from the UI.
This functionality is working in VB6, but when it comes to VB.NET it is not working.
In VB6 we can able to access the Print Date programmatically as given below:
VB
Report.PrintDate

But where as in ReportDocument we don't have that property.

So how can we do this?
Posted
Updated 8-Feb-13 0:23am
v3

The replacement to VB6's PrintDate is a specific ParameterField
Have a look at the answer to this question[^] on another forum. It includes a demo video and a link to a code sample
 
Share this answer
 
try doing this-
VB
CrystalDecisions.Shared.SpecialVarType.PrintDate

Or by using RAS:
VB
CrystalDecisions.ReportAppServer.DataDefModel.CrSpecialFieldTypeEnum.crSpecialFieldTypePrintDate
 
Share this answer
 
I have fixed this Issue by declaring a formula Field in the Crystal Report.Passed the value to that programmatically .

Thanks to all for your response :-)
 
Share this answer
 
v2
I have taken a formula field in the report and setting the value programmatically and hence fixed the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900