Page 1 of 1
hi Edward , regarding inheritance
Posted: Thu Feb 22, 2007 6:16 am
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
hi Edward , regarding inheritance
Posted: Thu Feb 22, 2007 6:18 am
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.
hi Edward , regarding inheritance
Posted: Thu Feb 22, 2007 7:27 am
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.