Interactive report and dynamically go to 2nd page
I have a very simple interactive report. It has two pages.
Click a link on report page 1 takes you to report page 2.
Now when I generate the report dynamically in code, I want to go to page 2 directly, is it possible? and how?
I tried something like
report1.SetParameterValue("MyReportNumber", 2);
before call report1.prepare(), but it doesn't seem to work.
Click a link on report page 1 takes you to report page 2.
Now when I generate the report dynamically in code, I want to go to page 2 directly, is it possible? and how?
I tried something like
report1.SetParameterValue("MyReportNumber", 2);
before call report1.prepare(), but it doesn't seem to work.
Comments
No help? I thought the response time is normally pretty fast.
You may add another report tab using the previewControl.AddTab method.
Hi Alex, I am not trying to added another report tab to previewControl though.
I am trying to generate the report directly and dynamically, do u know what I mean?
the code snipe is
Report report = new Report();
report.RegisterData(dataSet, dataSetName);
report.Load(templateStream);
report.SetParameterValue(name, value);
report.Prepare();
report.Export(new HtmlExport(), context.Response.OutputStream);
BUT this will only export the first reportpage of the report, can I directly export the 2nd reportpage instead???
Try this:
(report.Pages[0] as ReportPage).Visible = false;
(report.Pages[1] as ReportPage).Visible = true;
report.SetParameterValue(name, value);
report.Prepare();