Windows.Forms in stiWebViewer

Stimulsoft Reports.NET discussion
cleberaa
Posts: 7
Joined: Fri Feb 20, 2009 12:15 pm
Location: RP

Windows.Forms in stiWebViewer

Post by cleberaa »

Edward wrote:Hi,

Please note that you have to save the report template from the code as follows:

rptReport.Save(Server.MapPath("~/files/rptReport.mrt"));

Also the report template can be saved using additional zip compressing:

rptReport.SavePackedReport(Server.MapPath("~/files/rptReport.mrz"));

Also both templates could be saved from directly from the designer.

And there are similar situation for rendered reports:

SavePackedDocument/LoadPackedDocument for 'mdz' (resulted file will be compressed in zip format)

and

SaveDocument/LoadDocument for 'mdc' (resulted report won't be archived)

And what is the size of that report? Are there images with big size?

Please send this file of the report to support[at]stimulsoft.com for analysis.

Thank you.
You don't understand, I need only show forms in my stiWebViewer, only that these apperas in my stiWebViewer.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Windows.Forms in stiWebViewer

Post by Edward »

You can show only one form per report in Web. And there are requirements in web for this:

1) StiWebViewer.RederMode must be AjaxWithCache or UseCache.

2) Code of rendering report must be in any other place but not in PageLoad event of the WebPage. You can place this code for example inside the ButtonClick event.

3) Dialogs will work in web only when StartMode property in Dialog Form is set in 'OnStart'

If these three requirements are satisfied, then your report will work with dialogs in Web environment.

Thank you.
cleberaa
Posts: 7
Joined: Fri Feb 20, 2009 12:15 pm
Location: RP

Windows.Forms in stiWebViewer

Post by cleberaa »

Edward wrote:You can show only one form per report in Web. And there are requirements in web for this:

1) StiWebViewer.RederMode must be AjaxWithCache or UseCache.

2) Code of rendering report must be in any other place but not in PageLoad event of the WebPage. You can place this code for example inside the ButtonClick event.

3) Dialogs will work in web only when StartMode property in Dialog Form is set in 'OnStart'

If these three requirements are satisfied, then your report will work with dialogs in Web environment.

Thank you.

1) my stiWebViewer has RenderMode="AjaxWithCache"
2) my code I moved inside to the buttonClick event.
3) in report (file ".mrt") the StartMode property is 'OnStart'

and... dont appear my form when are web page
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Windows.Forms in stiWebViewer

Post by Edward »

Hi Cleber,

Thank you for the test project. I checked it and it worked as expected. But I removed SQL Connection from there. I have sent you the project without any sql connections, please check it.

Thank you.
Post Reply