Saving a report without using the Save and SaveAs Events

Stimulsoft Reports.WEB discussion
Post Reply
Tapir
Posts: 13
Joined: Fri Jan 14, 2011 1:21 am
Location: Sweden

Saving a report without using the Save and SaveAs Events

Post by Tapir »

Hi
In the Web Designer, is it possible to not go throught the Save and SaveAs event to get the correct report to save it to the database?
I im trying to check out all save options, but the report is only correct when I use either Save or SaveAs events from the web designer

Thanx

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Saving a report without using the Save and SaveAs Events

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Tapir
Posts: 13
Joined: Fri Jan 14, 2011 1:21 am
Location: Sweden

Saving a report without using the Save and SaveAs Events

Post by Tapir »

Hi Again
OK, will try to do it:biggrin:
I am using the Web Designer in my web applicatrion, so the user can design his/her own reports
The web designer is part of a wizard, which consists of many steps, First step is to name the report, to add a comment (this is my business logic),
Step 2 opens the designer with data fields the user can set and position, this all works very fine. The step after that goes back to business logic to set user rights for the report before the report and data from step 1 and 3
are to stored in the database.
The problem in step 2 is I need to push (meaning the end user also) has to push the save button, to get any the whole report back (Im using the Report.SaveToString()) , with data source, fields etc
so I can save it in the database. The Report.SaveToString contais not much (no fields I have dragged out to the report, no data source) hwhen the Save button hasnt been pushed. If I use the event for save report
e.g. Stimulsoft.Report.Web.StiWebDesigner.StiSaveReportEventHandler(WD_Views_SaveReport) , and call Report.SaveToString() then I get the whole report with fields in the report, data sources etc, when I click the save button
in the designer.But I would really like to avoid to have the user need to push the Save button to get the whole correct report.
I tried Report.Compile etc, but it doesnt seem to do the job...
Thanx for your help



Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Saving a report without using the Save and SaveAs Events

Post by Andrew »

Hello,

Thank you for the detailed explanation.
Unfortunately, it is not possible because Web Designer is the client part and report generation goes on the server.

Thank you.
Post Reply