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)

Dynamics 365 FOP Sales invoice report - change layout at runtime

(0) ShareShare
ReportReport
Posted on by 805

Hi Guys,

I am trying to change sales invoice report layout at runtime.

I do the following:

1. Create a class SalesInvoiceControllerExt which extends SalesInvoiceController class.

2. Create a main method in extension class where I instantiate SalesFormLetterControler and call parmReportName method where I put the new report (copy of the original one and modified). 

class SalesInvoiceControllerExt extends SalesInvoiceController
{
    public static void main(Args _args)
    {
        GiroPrintMgmtFormLetterController formLetterController = SalesInvoiceController::construct();
        formLetterController.parmArgs(_args);
if (!CustInvoiceJourExtensionTH::canInvoiceBePrinted(_args)) { return; }
formLetterController.parmReportName(ssrsReportStr(SalesInvoiceNew, Report)); formLetterController.parmShowDialog(false); formLetterController.parmDialogCaption("@SYS22766"); formLetterController.startOperation(); } }

3. Create an extension of the SalesInvoice output menu item and change Object property to point to my new controller class SalesInvoiceControllerExt.

4. I try to print an invoice from the CustInvoiceJournal form using button "Use print management" but AX use the original layout instead the new one. I did some debugging so I am sure that the main method of my new controller class is invoked.

Any ideas...?

Regards,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Service order Profile Picture
    85 on at

    Have you got solution for the above question?

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
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans