Same PDF generating from webreports
-
- Posts: 2
- Joined: Sat Jun 04, 2011 4:34 am
Same PDF generating from webreports
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 ?
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
Hello,
We couldn't reproduce this bug.
Can you please send us a simple test project, which reproduce the issue?
Thank you.
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
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.
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
Hello,
Can you provide code which you use to generate report. Also we need check aspx page.
Thank you.
Can you provide code which you use to generate report. Also we need check aspx page.
Thank you.
Same PDF generating from webreports
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.
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
Hello,
Please try to set the ExportsNewWindow property to True:
Please try to set the ExportsNewWindow property to True:
Thank you.
Same PDF generating from webreports
That works, thanks.
Same PDF generating from webreports
Hello,
We are happy to help you.!
Thank you.
We are happy to help you.!
Thank you.
Same PDF generating from webreports
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?
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
Hello,
We test the WebViewer and provide maximum functionality before release 2011.2 in September.
Thank you.
We test the WebViewer and provide maximum functionality before release 2011.2 in September.
Thank you.