Editing a Report Template in the Designer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Your application can host the full Stimulsoft report designer so users edit templates themselves.
Opening the designer. Create a report and call
Handling the save event. Subscribe to
Setting
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Opening the designer. Create a report and call
Design() — the standalone designer opens for that report:var report = new StiReport();
report.Design();Handling the save event. Subscribe to
StiDesigner.SavingReport to take control of saving. The event lets you decide how and where the template is stored:StiDesigner.SavingReport += GlobalEvents_SaveReport;
private void GlobalEvents_SaveReport(object sender, StiSavingObjectEventArgs e)
{
if (e.EventSource == StiSaveEventSource.SaveAs)
{
e.Processed = false;
return;
}
var report = ((IStiDesignerBase)sender).Report;
// save the report where you need
}Setting
e.Processed tells the designer whether you have handled the save yourself, which is how you redirect templates to a database or a custom storage instead of the file system.На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
