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)

Print invoice from batch

(0) ShareShare
ReportReport
Posted on by 916

Hi,

We have a batch for printing invoice. The batch show this error :

1526.Print.PNG

I can't understand the meaning of this error. Here is my code : 

controller.parmReportName(_reportName);
controller.parmShowDialog(false);

// Change print settings as needed
settings = controller.parmReportContract().parmPrintSettings();
controller.parmReportContract().parmRdpContract().parmCustInvoiceJourRecid(_custInvoiceJour.recid);

settings.printMediumType(SRSPrintMediumType::Printer);
settings.printerName(SalesParameters.printerName);
settings.numberOfCopies(_numberOfCopies);

controller.runReport();

Regards

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at

    When you say that you have a problem with "a batch for printing invoice", does it mean that you don't have any problem with printing other reports and printing the invoice without a batch?

    You can't understand the message because it doesn't say what happened - it's just saying that there was some error and where. After making sure it's related to batch, I would first build CIL and if it doesn't make a difference, I would look at the code (line 27 of SRSFrameworkServiceHelper.getDefaultConfig()). If it doesn't help, I would debug the batch.

  • ALAhmed Profile Picture
    916 on at

    Hi Martin,

    I found the issue, the batch was printing invoices from all companies and there was one print setup in one company that does not have the correct right access.

    Thank you

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans