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 :
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,054

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 !

  • Suggested answer
    Momochi Profile Picture
    1,054 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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 271 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 200 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans