Update informacion in the page after a call to StiReport

Stimulsoft Reports.NET discussion
Post Reply
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Update informacion in the page after a call to StiReport

Post by iomega55 »

Hi:
I´m using a web form with 2 textboxes, 2 labels and 1 button.
The user fills the textboxes, clicks the button to get his report.
But after the report is rendered I need to change the text in the labels in the same postback.
But after the call to the StiReport the only information that is returned to the client is the report(in my case a PDF file).

How can I get: the report and the change to the information in the web form when the user click the button.

Thanks in advance.

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Update informacion in the page after a call to StiReport

Post by Edward »

Please show your code and please specify the place in it where the changes should be applied.

Thank you.
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Update informacion in the page after a call to StiReport

Post by iomega55 »

.aspx







.cs

protected void btnPrint_Click(object sender, EventArgs e)
{
lblOne.Text = "All done 1";
StiReport myreport = new StiReport();
myReport.Load("some.mrt");
myReport.Render(false);
StiReportResponse.ResponseAsPdf(this,myreport);
lblOne.Text = "All done 2";
}



I want after print (pdf) my report, assign a value to the label, so the user receive some kind of notification.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Update informacion in the page after a call to StiReport

Post by Vital »

In your case webclient send request to webserver. Webserver send response to webclient as pdf (method ResponseAsPdf). So after line of code

StiReportResponse.ResponseAsPdf(this,myreport);

your code does not have sense. You have only one variant, before method ResponseAsPdf you need change variable in page cache or in session cache. On next PageLoad event you need get values from cache.

Thank you.
Post Reply