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
-
- Posts: 7
- Joined: Tue May 18, 2010 3:39 am
- Location: Switzerland
Inheritance problem
Hansjörg
Inheritance problem
Hello,
We couldn't reproduce this bug.
Can you please send us a sample reports with data, which reproduces the issue?
Thank you.
We couldn't reproduce this bug.
Can you please send us a sample reports with data, which reproduces the issue?
Thank you.
-
- Posts: 7
- Joined: Tue May 18, 2010 3:39 am
- Location: Switzerland
Inheritance problem
Hello Ivan
attached a sample app. Please press the button to reproduce the problem.
Thank you.
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
Inheritance problem
Hello,
The problem is solved.
The patch will be available in the next prerelease build.
Thank you.
The problem is solved.
The patch will be available in the next prerelease build.
Thank you.