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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

SSRS: I'm Unable to Add Project Invoice Custom Design to Print Management

(0) ShareShare
ReportReport
Posted on by 1,044

Greetings dears!

I have modified the design for the Project Invoice named "PSAProjInvoice".

But I'm unable to add my custom report design in the print management under Project Management and accounting > Set up > Form set up.

I have created 2 classes:

1-  Extension of PrintMgmtReportFormatPopulator

[ExtensionOf(classStr(PrintMgmtReportFormatPopulator))]
public final class PrintMgmtReportFormatPopulator_Extension
{
    #ISOCountryRegionCodes
    #PrintMgmtSetup
    #RusReportFormats
    public void populate(boolean _deleteAll, boolean _showConfirmation)
    {
        next populate(_deleteAll, _showConfirmation);
        this.addOther(PrintMgmtDocumentType::SIManagedProjInvoice,
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            #NoCountryRegionId);
        this.addOther(PrintMgmtDocumentType::SIManagedProjInvoiceWithBR,
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            #NoCountryRegionId);
        this.addOther(PrintMgmtDocumentType::ProjectInvoice,
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1),
            #NoCountryRegionId);
    }
}

2- Handler class that subscribes to PrintMgmtDocType

class Custom_PrintMgmtDocTypeHandler
{
    [SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
    public static void getDefaultReportformatDelegateHandler(PrintMgmtDocumentType _docType, EventHandlerResult _result)
    {
        switch(_docType)
        {
            case PrintMgmtDocumentType::SIManagedProjInvoice:
                _result.result(ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1));
                break;
            case PrintMgmtDocumentType::SIManagedProjInvoiceWithBR:
                _result.result(ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1));
                break;
            case PrintMgmtDocumentType::ProjectInvoice:
                _result.result(ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1));
                break;
        }
    }
}

This type of implementation was working for me with Customer and Vendor invoices.

But it's not working with project invoices.

What am I missing?

Any advice is appreciated!

Thanks in advance !

I have the same question (0)
  • Suggested answer
    Momochi Profile Picture
    1,044 on at

    It turns out that the code above works fine but I was using wrong document types in the switch statement.

    The following code includes the correct document type:

    class Custom_PrintMgmtDocTypeHandler
    {
        [SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
        public static void getDefaultReportformatDelegateHandler(PrintMgmtDocumentType _docType, EventHandlerResult _result)
        {
            switch(_docType)
            {
                case PrintMgmtDocumentType::SIProjInvoice:
                    _result.result(ssrsReportStr(Custom_PSAProjInvoice, PrecisionDesign1));
                    break;
            }
        }
    }

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 681 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 598 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 579

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans