Page 1 of 1

Inheritance problem

Posted: Fri Oct 01, 2010 4:19 pm
by Hansjoerg Meyer
I have a Basereport (formA4h.mrt) from which is inherited a second report (formA4hHeader.mrt).
Now i try to use the reportfile formA4hHeader.mrt as masterreport for another report (formA4hAdress.mrt).

var reportA4hAdress = new StiReport();
var reportA4hHeader = new StiReport();
reportA4hHeader.Load("formA4HHeader.mrt");
reportA4hAdress.MasterReport = reportA4hHeader.SaveToString();
reportA4hAdress.UpdateInheritedReport();

At this point i get the following exception:

System.NullReferenceException wurde nicht behandelt.
Message="Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
Source="Stimulsoft.Report"
StackTrace:
bei Stimulsoft.Report.StiInheritedReportComparer.CompareRelations(StiReport report, StiReport masterReport)
bei Stimulsoft.Report.StiInheritedReportComparer.Compare(StiReport report, StiReport masterReport)
bei Stimulsoft.Report.StiReport.UpdateInheritedReport()
bei Stimulsoft.Report.StiReport.Design(Form parentForm, Boolean dialogForm, IWin32Window win32Window)
bei Stimulsoft.Report.StiReport.Design()

When uncommenting the UpdateInheritedReport the exception is thrown as soon as reportA4hAdress.Design() is called.

What is wrong ?

Inheritance problem

Posted: Mon Oct 04, 2010 1:55 am
by Ivan
Hello,

We couldn't reproduce this bug.
Can you please send us a sample reports with data, which reproduces the issue?

Thank you.

Inheritance problem

Posted: Mon Oct 04, 2010 11:40 am
by Hansjoerg Meyer
Hello Ivan

attached a sample app. Please press the button to reproduce the problem.

Thank you.

Inheritance problem

Posted: Wed Oct 06, 2010 2:51 am
by Ivan
Hello,

The problem is solved.
The patch will be available in the next prerelease build.

Thank you.