Code: Select all
// Get the report file path
string reportFilePath = "..."; // depends on xxx
StiReport report = new StiReport();
report.Load(Server.MapPath(reportFilePath));
report.Dictionary.Variables.Add("ReportId", this.ReportId);
reportViewer.Report = report;
The issue I'm having is that if a user opens one report and moves to page 3, say, when they go back to the report list and then open a new report it starts them on page 3 (rather than page 1).
How do I get it so that whenever the user opens a new page they are sent back to the first page?
I've tried the following:
Code: Select all
reportViewer.ResetPageNumberOnAssignNewReport = true;
Code: Select all
report.PageNumber = 1;
Thanks