Page 1 of 1

How to update a business object in MRT file

Posted: Wed Dec 14, 2016 10:16 am
by balakrishnaganji
Hi Team,

I have a report created using a DLL say abc.dll and I have used lot of properties from it.

Now the abc.dll have 2 more new properties added as part of enhancements, and I need to show the 2 properties data in the report.

In the designer, I am unable to access those 2 new properties with currently binded dll. I have deleted the business object and added the updated abc.dll to the designer file .mrt one.

But this designer file is not able to generate all the data in the report .

Is there any way, to update the same business object abc.dll in the stimulsoft designer, such that, i can use those 2 properties and the report generation should work as it is.

Re: How to update a business object in MRT file

Posted: Thu Dec 15, 2016 9:47 pm
by Alex K.
Hello,

You can use the following code:

Code: Select all

report.Dictionary.BusinessObjects.Clear();
report.RegBusinessObject();
report.Dictionary.SynchronizeBusinessObjects();
Thank you.