ReportViewer - Print Info on report not contained in a dataset RRS feed

  • Question

  • I need to print data to a report within a specified date range. I have no problem getting the report to show data correctly but I would like to print the specified date range in the report title. As this date range changes and is not contained in the report data, how can I get these variables to print to my report?

    I am using VB 2008 and have not found any way to do this.




    Friday, November 12, 2010 2:20 PM

All replies

  • You can define the values as report parameters and reference the parameter values in your title textbox.  The parameters can be set programmatically using ReportViewer.LocalReport.SetParameters() or ReportViewer.ServerReport.SetParameters(), depending on the mode you are using.
    Monday, November 15, 2010 3:52 AM