Problem with PrintToPDF and reload new report in web.

Stimulsoft Reports.NET discussion
Post Reply
opensky90
Posts: 3
Joined: Tue Sep 27, 2011 7:20 am

Problem with PrintToPDF and reload new report in web.

Post by opensky90 »

Hi Stimulreport:

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;
      
    }
Please Help me for this problem.:cry: :cry: :cry: :dumb: :dumb: :dumb:
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Problem with PrintToPDF and reload new report in web.

Post by Vladimir »

Hello,

To resolve this problem, please try to set the following property to True:
Thank you.
opensky90
Posts: 3
Joined: Tue Sep 27, 2011 7:20 am

Problem with PrintToPDF and reload new report in web.

Post by opensky90 »

Vladimir wrote:Hello,

To resolve this problem, please try to set the following property to True:
Thank you.
Not resolve this way!!!:angry: :angry:
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Problem with PrintToPDF and reload new report in web.

Post by Vladimir »

Hello,

Which render mode do you use? Please try to set the Ajax mode, if you use the standard mode:
Thank you.
opensky90
Posts: 3
Joined: Tue Sep 27, 2011 7:20 am

Problem with PrintToPDF and reload new report in web.

Post by opensky90 »

Vladimir wrote:Hello,

Which render mode do you use? Please try to set the Ajax mode, if you use the standard mode:
Thank you.
I'm using this way and also not resolve problem!!!!!!!!!!!!!:cry: :cry: :cry: :cry: :cry: :pffft: :pffft: :pffft: :hugging: :hugging: :hugging:
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Problem with PrintToPDF and reload new report in web.

Post by Vladimir »

Hello,

Sorry, we could not repeat the error. Could you send us .aspx and .cs page on which the WebViewer component is placed?

Also please try to set the following property:
Thank you.
Post Reply