I have created a couple new designs for Free Text Invoice reports. I have been able to add the report designs to print management selection with the code below, but only the the second report shows up in print management. I can swap the order and build again and then both show up, but that doesn't work when deploying the package to other environments, only the second report shows up. How do I get both report designs to show up in print management?
[SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void PrintMgmtDocType_getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
switch (_docType)
{
case PrintMgmtDocumentType::SalesFreeTextInvoice:
_result.result(ssrsReportStr(FreeTextInvoice_Red, Report1));
_result.result(ssrsReportStr(FreeTextInvoice_Red, Report2));
break;
}
}