web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to implement custom SSRS report to use print mgmt options

(0) ShareShare
ReportReport
Posted on by 275

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:

https://axmartina.wordpress.com/2013/07/01/manage-printer-settings-for-ssrs-report-in-ax-2012/comment-page-1/#comment-169

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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans