Page 1 of 2

Same PDF generating from webreports

Posted: Sat Jun 04, 2011 4:39 am
by sateeshn2507
Hi,
I am using Stimulsoft web reports ver.2010.1.700.0. As these reports doesn't support printing on dotmatrix printers, I am generating the report as PDF file (using StiWebViewer1.PrintToPdf();).
When I try to generate the report by changing parameters, same report is generating.
How can I get solved this problem ?

Same PDF generating from webreports

Posted: Sun Jun 05, 2011 3:41 pm
by Ivan
Hello,

We couldn't reproduce this bug.
Can you please send us a simple test project, which reproduce the issue?

Thank you.

Same PDF generating from webreports

Posted: Mon Jun 06, 2011 3:07 am
by Siira
I have the exact same problem.

It's easy to reproduce:
- Create a small report that listens to a parameter.
- Create an .aspx file with a webviewer control on it and a dropdown or textbox for the parameter, also add a button to generate the report and show it
- Run it, click Print --> Print to Pdf
- Change the dropdown or textbox, hit generate again

You will now get the exact same file. I have already checked, the Page_Load event fires (obviously), but the btnGenerate_Click event does not. Therefore the parameter (which has been changed) is not passed to the report, the report is not regenerated, thus you end up with the exact same pdf, which has the previous parameter setting.

Same PDF generating from webreports

Posted: Mon Jun 06, 2011 1:14 pm
by Jan
Hello,

Can you provide code which you use to generate report. Also we need check aspx page.

Thank you.

Same PDF generating from webreports

Posted: Wed Jun 08, 2011 4:59 am
by Siira
Sure.

I have made a movie. You see a simple report, one parameter on the aspx page (dropdown). It works fine, you can change the parameter, hit the generate button and it's generated again nicely.

Now when you use Print to PDF, it works fine the first time.
When the parameter is changed though and the generate button is clicked, another pdf appears. This is not the new report, but the one still visible. It should generate a new one, but btnGenerate_Click() is not even called.

The movie:
http://dl.dropbox.com/u/18120258/Video_ ... 115351.wmv

The source:
http://dl.dropbox.com/u/18120258/StimulsoftTest.zip

The issue here is the pdf is send again, even though something has changed in the report. As btnGenerate_Click is not called there is nothing I can do to prevent it. Once the parameters are changed and the Generate button is clicked, obviously there should not be anything sent, but the btnGenerate_Click event should fire and let me handle generating a new report.

Hope it's clear, if not, let me know.

Same PDF generating from webreports

Posted: Wed Jun 08, 2011 8:55 am
by Vladimir
Hello,

Please try to set the ExportsNewWindow property to True:
Thank you.

Same PDF generating from webreports

Posted: Wed Jun 08, 2011 9:41 am
by Siira
That works, thanks.

Same PDF generating from webreports

Posted: Wed Jun 08, 2011 10:25 pm
by Andrew
Hello,

We are happy to help you.!

Thank you.

Same PDF generating from webreports

Posted: Fri Aug 19, 2011 1:48 am
by Siira
Apologies for re-opening an old thread.

Are there any plans on fixing this issue the right way? Currently we're using the ExportsNewWindow feature, but it's not pretty. When someone wants to click through to the other pages or want to select "Whole report", nothing is shown anymore. Is there a way to fix that, or will there be a new version where we don't need the exports to end up in a new window?

Same PDF generating from webreports

Posted: Fri Aug 19, 2011 8:50 am
by Vladimir
Hello,

We test the WebViewer and provide maximum functionality before release 2011.2 in September.

Thank you.