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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Cannot call the correct Sales invoice SSRS report format with print management

(1) ShareShare
ReportReport
Posted on by 6,603
Hello:
 
Hopefully I can explain this clearly.
 
We have a modified Sales invoice report currently in the system (e.g. SalesInvoice.ABC, ABC being the model). The code below was written to allow configuration in Print management. It's the only customized version and it works fine. 
 
[SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
    public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
    {
        switch (_docType)
        {
            case PrintMgmtDocumentType::SalesOrderInvoice:
                _result.result(ssrsReportStr(abc_SalesInvoice, Report));
                break;
        }
    }
 
Now, I'm creating another version of the Sales invoice report (e.g., SalesInvoice.XYZ) using the base MS report. This will be used for a specific legal entity. I wrote the same code as above except specifying my version of the report. 
 
Under AR print management setup, I can see my report (xyz_SalesInvoice) for the Customer invoice document as well as the other customized version (abc_SalesInvoice). The problem is, even with xyz_SalesInvoice configured in Print management, when the report runs, it still calls the abc_SalesInvoice version. I would assume Print management would return the version configured but obviously that's not the case. 
 
Thank you! 
I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,563 Moderator on at
    Cannot call the correct Sales invoice SSRS report format with print management
  • bankk Profile Picture
    6,603 on at
    Cannot call the correct Sales invoice SSRS report format with print management
    Hello Mohit,
    I will certainly give this a solution a try. I will mark as solution if it works. 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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 765 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 743

#3
Sumit Singh Profile Picture

Sumit Singh 551

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans