Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:
Report.PrintDate
But where as in ReportDocument we don't have that property.
 
So how can we do this?
Posted 8-Feb-13 0:19am
Edited 8-Feb-13 0:23am
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

try doing this-
CrystalDecisions.Shared.SpecialVarType.PrintDate
Or by using RAS:
CrystalDecisions.ReportAppServer.DataDefModel.CrSpecialFieldTypeEnum.crSpecialFieldTypePrintDate
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 Smile | :)
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

I have taken a formula field in the report and setting the value programmatically and hence fixed the issue.
  Permalink  

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

  Print Answers RSS
0 Nirav Prabtani 268
1 OriginalGriff 267
2 _Amy 170
3 Mika Wendelius 165
4 Sergey Alexandrovich Kryukov 162
0 Nirav Prabtani 284
1 OriginalGriff 207
2 _Amy 170
3 Mika Wendelius 165
4 Sergey Alexandrovich Kryukov 119


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100