I am wondering if there is any secret to making forms work properly in the web viewer. I've done a simple example where a form containing an Ok button is pressed to show a report. When previewing in normal "Windows Forms" mode, this works fine. However, when attempting to view the report in an ASP.NET page, I can't get the form to process correctly. The form will render correctly as the first "page", and clicking Ok will show the report viewer on the next "page" -- however the report viewer doesn't show anything, as if there is no report loaded.
What are the correct steps to do this? I imagine that I'm missing some serialization things that I need to do? Here's the only code that I have:
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
//if (WebViewer.IsImageRequest) return;
if (!IsPostBack)
StiWebViewer1.Report = StiReportViewer1.GetReport();
}