With this code I can join rendered pages in one report and show it. But I cant find any bookmarks on the target joined report object.
Original reports has bookmarks in object interactions and without join it works well. But if I add this rendered pages to the new joined report, there is no any bookmark.
Do you have any offer?
Code: Select all
StiReport certificatesReport=null;
if (IsMultipleCertificateTypes)
{
certificatesReport = new StiReport
{
CalculationMode = StiCalculationMode.Compilation,
ReportUnit = StiReportUnitType.Millimeters,
ScriptLanguage = StiReportLanguageType.CSharp,
Unit = StiUnit.Millimeters,
NeedsCompiling = false,
IsRendered = true,
IsInteractionRendering = true,
};
certificatesReport.RenderedPages.Clear();
var groupDatas = CertificatesDataTable.AsEnumerable().GroupBy(q => q[DataRowTemplateIdColumnName]);
foreach (var groupData in groupDatas)
{
var reportCertificate = RenderReportTemplate(TemplateTypes.Certificate, groupData.CopyToDataTable());
foreach (StiPage page in reportCertificate.CompiledReport.RenderedPages)
{
page.Report = certificatesReport;
page.NewGuid();
certificatesReport.RenderedPages.Add(page);
}
}
}
stiViewerCertificates.Report = certificatesReport;
stiViewerCertificates.InvokeBookmarks();