I'm doing the following when calling the designer:
Code: Select all
StiSavingObjectEventHandler saver = (sender, args) =>
{
var designer = sender as StiDesignerControl;
if (designer != null)
{
args.Processed = true;
}
};
StiDesigner.SavingReport += saver;
try
{
stiReport.Design();
}
finally
{
StiDesigner.SavingReport -= saver;
}
After that I check if stiReport.ReportChanged has changed to update the report I store in a special file. For most of the changes I do in the designer this works fine. But when just changing the CanBreak property of a databand or a text field, ReportChanged does not get updated. This might be true for other properties too - haven't checked this.