my website is ASP.NET application with master page.
Also 2 text box and 1 button for send parameters to report.
When press button show report to stiwebviewer.
But when change text box value and press button after saving to PDF or print to PDF , also show saving to pdf dialog and Not show new report.!!!!
also my code is here:
Code: Select all
protected void Button3_Click(object sender, EventArgs e)
{
StiReport report = new StiReport();
string str = "";
if (ComboBox1.SelectedValue == "HK")
{
str = Server.MapPath("reports/ReportDecree.mrt");
}
else if (ComboBox1.SelectedValue == "BM")
{
str = Server.MapPath("reports/ReportMP.mrt");
}
report.Load(str);
report.Compile();
report["@ref_number1"] = txt_from.Text;
report["@ref_number2"] = txt_until.Text;
StiWebViewer1.Report = report;
}


