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);
}
Used
Microsoft Visual Studio 2005
Language C++/CLI
StimulsoftReportsNet2009.1 and StimulsoftReportsNet2008.2