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!