When use SavingReportinDesigner event saves the old version of the report.

Stimulsoft Reports.NET discussion
Post Reply
Samael
Posts: 1
Joined: Wed Sep 02, 2009 8:27 am
Location: Russia

When use SavingReportinDesigner event saves the old version of the report.

Post by Samael »

Hello.
Our application allow users modify their report form in designer and save it as a binary object in a database field.
How it implement write there and there.
Our code to save report

Code: Select all

Stimulsoft::Report::StiOptions::Engine::GlobalEvents::SavingReportInDesigner += gcnew Stimulsoft::Report::Design::StiSavingObjectEventHandler(this, &FrmReport::SavingReportInDesigner);

private: void SavingReportInDesigner(Object ^ sender, Stimulsoft::Report::Design::StiSavingObjectEventArgs ^ e)
{
    Stimulsoft::Report::Design::StiDesignerControl ^ designerControl = (Stimulsoft::Report::Design::StiDesignerControl ^)sender;
    System::IO::MemoryStream ^ reportStream = gcnew System::IO::MemoryStream();
    designerControl->Report->Save(reportStream);
    SaveReportToDataBase(reportStream);
}
But when you click in designer save button to database saves the old version of the report, only when you twice click save button saved the modified report. Is there a way to avoid double-clicking save button?

Used
Microsoft Visual Studio 2005
Language C++/CLI
StimulsoftReportsNet2009.1 and StimulsoftReportsNet2008.2
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

When use SavingReportinDesigner event saves the old version of the report.

Post by Andrew »

Hello,

We cannot reproduce the error. Please, send a report template to support@stimulsoft.com.
And please try to download the latest prerelease build.

Thank you.
Post Reply