Page 1 of 1

Inheritance problem

Posted: Thu Feb 22, 2007 10:13 pm
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.

Inheritance problem

Posted: Mon Feb 26, 2007 3:41 am
by Edward
The problem is confirmed.

We will inform you when the fix will be available.

Thank you.

Inheritance problem

Posted: Tue Feb 27, 2007 2:59 am
by Edward
Please check the latest build.
If the problem still exists, please use the childreport.UpdateInheritedReport method before rendering.

Thank you.