Hi All,
I duplicated the standard Customer Account Statement report to create our customized version. I am currently facing an issue when calling the standard report.
I am using the Print Management delegate to call my custom report. When I configure my custom report in Print Management and print it, everything works as expected. However, when I try to print the standard report, I get the following error:
"An attempt was made to set a report parameter 'SingleCurrencyReport' that is not defined in this report."
I tried debugging the controller class of the report. While printing the standard report, I noticed that my custom report is being called every time because of the following code:
[SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void PrintMgmtDocType_getDefaultReportFormatDelegate(
PrintMgmtDocumentType _docType,
EventHandlerResult _result)
{
switch (_docType)
{
case PrintMgmtDocumentType::CustAccountStatement:
_result.result(ssrsReportStr(C_CustAccountStatementExt, Report));
break;
}
}
Because of this delegate, it appears that my custom report is being selected even when I try to print the standard Customer Account Statement report.
Could someone please advise how I can configure the Print Management delegate so that my custom report is called only when it is explicitly selected, without affecting the standard report?

Report
All responses (
Answers (