changing crystal reports print date in code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tony

    changing crystal reports print date in code

    Is there a way to change the "print date" field in vb/vb.net code? I have a
    report that uses keywords like "MonthToDat e" 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.Repor tSource = 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.


  • Lucas Tam

    #2
    Re: changing crystal reports print date in code

    "tony" <test> wrote in news:eV7k3cIjEH A.2340@TK2MSFTN GP11.phx.gbl:
    [color=blue]
    > Is there a way to change the "print date" field in vb/vb.net code? I
    > have a report that uses keywords like "MonthToDat e" and "YearToDate "
    > to genereate the report, I want to be able to change the relative date
    > to those fields.[/color]

    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 (REMOVEnntp@rog ers.com)
    Please delete "REMOVE" from the e-mail address when replying.

    Comment

    Working...