2
Hello,

we are using the "OnBeforeMergeDocument" event in funktion "MergeWordLayout" (Codunit 9651 "Document Report Mgt.") in order to provide a alternate ISV solution for printing/exporting reports.

The standard call, which is allready implemented is:
OnBeforeMergeDocument(ReportID,ReportAction,InStrXmlData,PrinterName,OutStrWordDoc,Handled,FileName = '');

But we need the parameter "FileName" instead of "PrinterName":
OnBeforeMergeDocument(ReportID,ReportAction,InStrXmlData,FileName,OutStrWordDoc,Handled,FileName = '');

Maybe this is a bug or a unfortunate implementing in the current solution.

If we do not get the "FileName" as parameter in the event call, we do not have a chance to implement a different version of for example "SAVEASPDF" in the "OnBeforeMergeDocument". Because "PrinterName" is only filled, if the ReportAction is "Print". We can not access the "FileName", which is nessesary in this case.

I think, this would be a great benefit, even for everyone, who wants to use this "OnBeforeMergeDocument" event and it would not crash current implementions, because the "FileName" even holds the printername, if the ReportAction is "Print".

Best regrads
Jürgen Markgraf


Category: General
STATUS DETAILS
Declined
Ideas Administrator

Thank you for your feedback. We are not considering the suggestion at this time due to same issue being already rejected on GitHub https://github.com/microsoft/ALAppExtensions/issues/3163

Sincerely, 
Business Central Team