How to correctly invoke report preview and designer for both Web and Win platform?

Stimulsoft Ultimate discussion
Post Reply
Alkatraz
Posts: 2
Joined: Sun Dec 18, 2011 5:11 am

How to correctly invoke report preview and designer for both Web and Win platform?

Post by Alkatraz »

Hello!

We used Stimulsoft report before, until we transfered to Devexpress ExpressApplication Framework platform and now we need to integrate Stimulsoft reports in platform agnostic module.

Firstly, all reports is stored within a database. Secondly, there is a module wich invokes report preview and designer for both Web and Win platform. And lastly, after designer closes, all modifications must be saved in to the database.

We managed to open preview and designer for Win platform. It was easy indeed, but we stumbled upon the problem of implementing the same functionality for Web platform.

How to correctly open report preview and designer, and save modifications, made to the report, to database after designer closes in Web?

Thank you!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to correctly invoke report preview and designer for both Web and Win platform?

Post by Vladimir »

Hello,

If you close the designer by using the button "Exit" in the designer main menu, a dialog window asking you to save changes. If you close your Internet browser, the designer cannot handle this action and changes may be lost. To avoid such a situation, you can configure the report auto-save:

StiWebDesignerOptions.AutoSaveInterval = 5;   // minutes

Thank you.
Alkatraz
Posts: 2
Joined: Sun Dec 18, 2011 5:11 am

How to correctly invoke report preview and designer for both Web and Win platform?

Post by Alkatraz »

Since all our reports is stored in database, we want to disable save report dialog window and replace it with code that saves report to the database. Is this possible?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to correctly invoke report preview and designer for both Web and Win platform?

Post by Alex K. »

Hello,

You can describe on the save events in designer
StiOptions.Engine.GlobalEvents.SavedReportInDesigner
and implement your method for saving.

Thank you.
Post Reply