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.
Update informacion in the page after a call to StiReport
Update informacion in the page after a call to StiReport
Please show your code and please specify the place in it where the changes should be applied.
Thank you.
Thank you.
Update informacion in the page after a call to StiReport
.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.
.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.
Update informacion in the page after a call to StiReport
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.
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.