adsenseheader

Tuesday, October 29, 2019

Add additional report designs on your Print management

HI,

If you are trying to find a way to populate your new report design on the print management form.

Please find the below steps.

1. Create a delegate of  your print management class "PrintMgmtDocType" method "getDefaultReportFormatDelegate"
2. Below code to add your new design

class QTQ_ProjInvcPrintMgmtDocTypeHandlers
{
    [SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
    public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
    {
        switch (_docType)
        {
            case PrintMgmtDocumentType::SIProjInvoice:
            case PrintMgmtDocumentType::SIProjInvoiceWithBR:
if (curExt() == 'CRRO' || curext() == 'CRBG')
                {
                    _result.result(ssrsReportStr(QTQ_PSAPojInvoice, Report));
                }
else
                {
                    _result.result(ssrsReportStr(QTQ_PSAPojInvoice, Report_Standard));
                }
                break;
        }
    }

}

3. Now build the class, you can see your new report design under Fomsetup --> Print Management --> Report design











Thanks,
Pradeep


No comments:

Post a Comment