How to replace business objects in existing report
Posted: Mon Mar 07, 2011 10:22 am
Hi,
I'd like to know how to replace business objects in EXISTING report.
The situation is like this: we sometimes customize business objects for our clients (add properties), but once the report is created users don't see subsequent customizations.
This is what i do after i load existing report in the designer:
foreach ( var businessObject in businessObjects )
{
stiDesigner.Report.RegBusinessObject(businessObject.Name, businessObject);
}
stiDesigner.Report.Dictionary.SynchronizeBusinessObjects(10);
The business objects i register are the new ones, but this doesn't change anything in the designer and i still see the old business objects there, the ones that were used when the report was first created.
Thanks,
Oleg.
I'd like to know how to replace business objects in EXISTING report.
The situation is like this: we sometimes customize business objects for our clients (add properties), but once the report is created users don't see subsequent customizations.
This is what i do after i load existing report in the designer:
foreach ( var businessObject in businessObjects )
{
stiDesigner.Report.RegBusinessObject(businessObject.Name, businessObject);
}
stiDesigner.Report.Dictionary.SynchronizeBusinessObjects(10);
The business objects i register are the new ones, but this doesn't change anything in the designer and i still see the old business objects there, the ones that were used when the report was first created.
Thanks,
Oleg.