Page 1 of 1

Problem with add renderpage

Posted: Mon Feb 16, 2009 2:32 am
by sphextor
I write this code in button_click Control to add multiple render page in same report

no error when first click but when second press it seem to insert blank page in stiviewercontrol


Dim Report As StiReport = StiReport.GetReportFromAssembly("c:\Complete_ReportAppraisalFormSummary.dll", True)
Report.Render(True)
StiViewerControl.Report.RenderedPages.Add(Report.RenderedPages(0))
StiViewerControl.Refresh()

Please Help Me

Problem with add renderpage

Posted: Mon Feb 16, 2009 3:52 am
by Edward
Hi,

We could not reproduce the issue.

Please send a test project to support[at]stimulsoft.com which reproduces the issue.

Also please send a mrt file of the report along with the project.

Thank you.

Problem with add renderpage

Posted: Mon Feb 16, 2009 7:19 pm
by sphextor
OK Let's reproduce

I test for earyly version by

Step To reproduce
1. Create Report with designer
2. drag textbox and set some text
3. save report to .dll
4. create visual studio project vs2008 .net 3.5 sp1 and all service pack
5. drag a viewercontrol in the form
6. drag button
7. write code in button like above
8. let's click button to add new renderpage to existing report

I test with the following version
Test SR_2008.11.19_R2005 , 2008.3.311.0 [OK]
Test SR_2008.12.29_R2005 , 2008.3.320.0 [OK]
Test SR_2009.01.05_R2005 , 2009.1.321.0 [OK]

but when upgrade newer verion it error

Test SR_2009.01.19_R2005, 2009.1.327.0 [ERROR] Window handle already exists.

It seem like the render using background worker in newer version
I not sure about this issue

thank you for your support






Problem with add renderpage

Posted: Tue Feb 17, 2009 10:43 am
by Edward
Hi,

Still could not reproduce the issue.

Please send the mdc file of the rendered report and the mrt file too.

Rendered report can be saved into mdc format from the preview window or using the following code:

Code: Select all

report.Render(false)
report.SaveDocument("MyRenderedreport.mdc")
Thank you.