Inheritance problem

Stimulsoft Reports.NET discussion
Post Reply
Hansjoerg Meyer
Posts: 7
Joined: Tue May 18, 2010 3:39 am
Location: Switzerland

Inheritance problem

Post 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 ?
Hansjörg
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Inheritance problem

Post 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.
Hansjoerg Meyer
Posts: 7
Joined: Tue May 18, 2010 3:39 am
Location: Switzerland

Inheritance problem

Post by Hansjoerg Meyer »

Hello Ivan

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

Thank you.
Attachments
638.WindowsApplication1.zip
(89.5 KiB) Downloaded 231 times
Hansjörg
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Inheritance problem

Post by Ivan »

Hello,

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

Thank you.
Post Reply