Posted 4 June 2023, 10:38 pm EST
Hi,
Using: ActiveReports v16, Visual Studio .NET v4.8.1 WinForms application
I’m trying this code to merge a 2nd report into the 1st report but its not working:
ddRpt = new rptA();
ddRptB = new rptB();
ddRptB.Run(false);
ddRpt.Document.Pages.AddRange(ddRptB.Document.Pages);
frmPreview pvPreview = new frmPreview();
pvPreview.ARViewer1.LoadDocument(ddRpt);
Application.Run(pvPreview);
When it opens the preview, it displays only the page from the first report. Any idea what could be wrong and how to resolve this? Thanks in advance!