How to add pages from one report to another
Posted: Fri May 22, 2009 9:41 am
I need to add pages from one report to another, And I tried the code
Dim mReport As New StiReport
mReport.Load("Reports0.mrt")
Dim oReport As New StiReport
oReport.Load("Reports1.mrt")
For Each aPage As StiPage In oReport.Pages
mReport.Pages.Add(aPage)
Next
mReport.show
This causes an error
System.NullReferenceException
{"Object reference not set to an instance of an object."}
Is there a way to copy a page from one report to another?
Dim mReport As New StiReport
mReport.Load("Reports0.mrt")
Dim oReport As New StiReport
oReport.Load("Reports1.mrt")
For Each aPage As StiPage In oReport.Pages
mReport.Pages.Add(aPage)
Next
mReport.show
This causes an error
System.NullReferenceException
{"Object reference not set to an instance of an object."}
Is there a way to copy a page from one report to another?