Same PDF generating from webreports

Stimulsoft Reports.WEB discussion
sateeshn2507
Posts: 2
Joined: Sat Jun 04, 2011 4:34 am

Same PDF generating from webreports

Post 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 ?
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Same PDF generating from webreports

Post by Ivan »

Hello,

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

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Same PDF generating from webreports

Post 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.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Same PDF generating from webreports

Post by Jan »

Hello,

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

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Same PDF generating from webreports

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Same PDF generating from webreports

Post by Vladimir »

Hello,

Please try to set the ExportsNewWindow property to True:
Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Same PDF generating from webreports

Post by Siira »

That works, thanks.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Same PDF generating from webreports

Post by Andrew »

Hello,

We are happy to help you.!

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Same PDF generating from webreports

Post 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?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Same PDF generating from webreports

Post by Vladimir »

Hello,

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

Thank you.
Post Reply