Page 5 of 5

Re: Dynamically adding a subreport to a page

Posted: Mon Sep 23, 2013 8:01 am
by HighAley
Hello.

Please, try to change last line of your code to the next one:

Code: Select all

StiReportResponse.ResponseAsPdf(this.Page, report, false);
Thank you.

Re: Dynamically adding a subreport to a page

Posted: Mon Sep 23, 2013 9:15 am
by prajan
Hi,
I tried it, but its not working.
Please let me know if there is something else that I might be missing.

Thanks

Re: Dynamically adding a subreport to a page

Posted: Tue Sep 24, 2013 8:04 am
by HighAley
Hello.
prajan wrote:I tried it, but its not working.
Please let me know if there is something else that I might be missing.
Could you describe more detailed?
What did you do?
What was wrong?
Please, send us a sample project which reproduces the issue.

Thank you.

Re: Dynamically adding a subreport to a page

Posted: Thu Sep 26, 2013 8:49 am
by prajan
Hi,
PFA a sample of the project and the data for the same.

On clicking the 'Button' in the 'About.aspx' page, a pop-up opens which shows the report.
But I want to see the report in PDF format. For that if I uncomment the following lines of code

Code: Select all

//report.IsRendered = false;
//StiReportResponse.ResponseAsPdf(this.Page, report, true);
the pop-up opens, but report is not seen.

I want the pop-up to show the report in PDF format. Please let me know what I need to do to achieve the same.

Thanks

Re: Dynamically adding a subreport to a page

Posted: Tue Oct 01, 2013 11:06 am
by HighAley
Hello.

Prajan, please, read next message carefully.

To return the pdf file, your code should be next:

Code: Select all

StiReport report = CreateReport2();   
report.Render(false);
StiReportResponse.ResponseAsPdf(this.Page, report, false);
In the last line the third parameter is false.

Thank you.

Re: Dynamically adding a subreport to a page

Posted: Tue Oct 08, 2013 7:48 am
by prajan
Hi,
As previously mentioned in my reply on Sep 23rd, setting the last parameter of 'ResponseAsPdf' to false did not change the scenario.
Please find the project attached.

We are still not able to see the report as PDF in the pop-up window. Please let us know what we are missing.

Thanks

Re: Dynamically adding a subreport to a page

Posted: Tue Oct 08, 2013 8:19 am
by HighAley
Hello.

The ResponseAsPdf() methods works right in all browsers.
The problem is in your JavaScript scripts.

Thank you.