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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

With One click at sales Invoice report I want three copies of SSRS Reports Original,duplicate,Triplicate

(0) ShareShare
ReportReport
Posted on by

Hi Friend,

I have developed a custom Sales Invoice report.

With a single button click I want three copies of same report with heading Original,Duplicate,Triplicate on screen.

What code I have to write

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    If it supports print management, go to print management and setup original and 2 copies this will force ax to print 3 copies of a report. If it doesn't support print management just call it 3 times instead of 1 in a place where you invoke it.

  • Community Member Profile Picture
    on at

    I called report two times in controller class main method.

    //first call

    if (TaxSolutionScopeIntegrationUtil::isCompanyEnabled()

    && !TaxableDocumentDescriptorFactory::getTaxableDocumentDescriptor(common).skipTaxDocument()

    && !custInvoiceJour.salesTable().CustomsExportOrder_IN)

    {

    salesInvoiceController.parmIsGSTInvoice_IN(true);

     

    // Print the second report

    // formLetterController = new SalesInvoiceController();

    //formLetterController.parmArgs(_args);

    formLetterController.parmReportName(ssrsReportStr(GSTInvoiceReport_IN, pwc_creditnote));

    formLetterController.parmShowDialog(false);

    formLetterController.startOperation();

    //second call

    if (TaxSolutionScopeIntegrationUtil::isCompanyEnabled()

    && !TaxableDocumentDescriptorFactory::getTaxableDocumentDescriptor(common).skipTaxDocument()

    && !custInvoiceJour.salesTable().CustomsExportOrder_IN)

    {

    salesInvoiceController.parmIsGSTInvoice_IN(true);

     

    // Print the second report

    // formLetterController = new SalesInvoiceController();

    //formLetterController.parmArgs(_args);

    formLetterController.parmReportName(ssrsReportStr(GSTInvoiceReport_IN, pwc_creditnote));

    formLetterController.parmShowDialog(false);

    formLetterController.startOperation();

    .....

     

    same report is generating with two times.But data is coming in first report,in second copy threre is no data only design is coming..

    Any thing I am missing?

  • Community Member Profile Picture
    on at

    Should I write down my code like below.

    //fisrt call In Controller main class

     PwC_TaxExportInvoiceController_IN formLetterController = new PwC_TaxExportInvoiceController_IN();

       formLetterController.printReport(_args);

       formLetterController.parmReportName(formLetterController.getReportName());

       formLetterController.parmDialogCaption('Export Invoice');

       formLetterController.parmShowDialog(true);

       formLetterController.startOperation();

    //second call

      formLetterController = new PwC_TaxExportInvoiceController_IN();

       formLetterController.printReportCopy(_args);

       formLetterController.parmReportName(formLetterController.getReportName());

      // formLetterController.parmDialogCaption('Export Invoice');

       formLetterController.parmShowDialog(false);

       formLetterController.startOperation();

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans