hi Edward , regarding inheritance

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

hi Edward , regarding inheritance

Post by gurimadaan »

hi edward thanks for response
but

report.MasterReport = masterReport.SaveToString()

in this line MasterReport is not a property or method in StiReport


so what we have to do?

Please tell me as soon as possible


Thanks

Gurpreet Madaan
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

hi Edward , regarding inheritance

Post by Vital »

Report inheritance available only in latest prereliase builds of StimulReport.Net. You can get it at http://stimulsoft.com/DownloadsSR.aspx
Thank you.
gurimadaan
Posts: 6
Joined: Mon Feb 19, 2007 4:49 am
Location: india

hi Edward , regarding inheritance

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.
Post Reply