Problem: function "MergeWordLayout" in codeunit 9651 "Document Report Mgt." -> Usage of parameter "PrinterName" on event "OnBeforeMergeDocument" #3163
Labels
wontfix
This will not be worked on
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
The text was updated successfully, but these errors were encountered: