How to update a business object in MRT file

Stimulsoft Reports.UWP discussion
Locked
balakrishnaganji
Posts: 1
Joined: Wed Dec 14, 2016 10:11 am

How to update a business object in MRT file

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to update a business object in MRT file

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

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