Here is sample project. It's not a huge deal, but I think the issue is a follows - prior to last couple builds if I set ViewMode to WholeReport, load the page, show run button, and when user clicks run - it would not set ViewMode again, but viewer would remember the option set on page load. Now it seems like viewer no longer remembers that option, I have to set it right before showing the report.
Sample project attached, but I think that's check for IsPostBack causing the issue
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
StiWebViewer1.ViewMode = Stimulsoft.Report.Web.StiWebViewMode.WholeReport;
}
}
protected void btnRender_Click(object sender, EventArgs e)
{
String missingFields = "";
string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);
// Prepare data
DataSet dataSet = new DataSet();
dataSet.ReadXml(appDirectory + "\\Data\\Demo.xml");
dataSet.ReadXmlSchema(appDirectory + "\\Data\\Demo.xsd");
// Load report
StiReport report = new StiReport();
report.Load(appDirectory + "\\Reports\\SimpleList.mrt");
report.RegData(dataSet);
// View report
StiWebViewer1.Report = report;
}