Inheritance problem

Stimulsoft Reports.NET discussion
Post Reply
gurimadaan
Posts: 6
Joined: Mon Feb 19, 2007 4:49 am
Location: india

Inheritance problem

Post by gurimadaan »

Just to make sure I understand the way inheritance works in Reports. If I create my concrete reports from a Master report using the sample code below: -

StiReport masterReport = new StiReport();
masterReport.Load("d:\\master-detail.mrt");

StiReport report = new StiReport();
report.RegData(dataSet);

report.MasterReport = masterReport.SaveToString();
report.Design();


My expecation was that if I design my report and after that go make a change to d:\\master-detail.mrt, the changes will be reflected in the concrete report that I designed using above code. Is that an invalid expecation. The way I tested it was by putting a header band in master-detail.mrt, then designing a report using above code and then executing the report after changing the text in header band in master-detail.mrt. My executed report still shows the old text. Note that we are saving the report layout of the concrete report in String form and then reloading it at a later point for execution.

Thanks in advance.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Inheritance problem

Post by Edward »

The problem is confirmed.

We will inform you when the fix will be available.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Inheritance problem

Post by Edward »

Please check the latest build.
If the problem still exists, please use the childreport.UpdateInheritedReport method before rendering.

Thank you.
Post Reply