
Hi everybody
I am trying to implement my custom SSRS report (Not formletter report) to use the print management printer options.
But i am having difficulties trying to do so. I have implementet these guidelines:
But at my current state my report is not printing anything out. My controller classes runs this method:
protected void runPrintMgmt()
{
printMgmtReportRun = PrintMgmtReportRun::construct(PrintMgmtHierarchyType::Invent, PrintMgmtNodeType::MyNode, PrintMgmtDocumentType::MyDocuType);
printMgmtReportRun.parmReportRunController(this);
printMgmtReportRun.load(dataTable, dataTable, CompanyInfo::find().LanguageId);
// printMgmtReportRun.load(this.parmArgs().record(), this.parmArgs().record(), CompanyInfo::find().LanguageId);
this.outputReports();
}
But it seems like when running the this.outputReports(); the report is empty. It jumps over the last section of code.
I am using a controller, DP and a contract. Which orginates from a standard SSRS report.
protected void runOutputReports()
{
SrsPrintMgmtExecutionInfo executionInfo = reportContract.parmReportExecutionInfo();
// if printMgmt is intialized run it.
if(!printMgmtReportRun)
{
throw error("@SYS328344");
}
// keep count of print settings for each document. Will be used for raising the rendered complete event.
executionInfo.parmPrintSettingsCount(printMgmtReportRun.getPrintSettingsCount());
documentPrintCountMap.insert(executionInfo.parmDocumentId(), executionInfo.parmPrintSettingsCount());
while(printMgmtReportRun.next())
{
this.outputReport();
}
}
Please any suggestions would be appreciated
*This post is locked for comments
I have the same question (0)