Calling convention: OEE_PrintDBReport("ReportName": String, "InOutFilePath": String, [ShowPDF: Boolean], [DirectPrint: Boolean], ["PrinterPackName" : String]): Boolean
Description: Exports a configured database report to PDF or sends it directly to a printer. The second argument is updated with the actual output path.
Parameters:
ReportName: configured DB report name.
InOutFilePath: input/output file path; desktop mode may show a save dialog when empty, while web mode generates a temporary path.
ShowPDF: optional; opens the exported PDF in desktop mode.
DirectPrint: optional; prints instead of exporting.
PrinterPackName: optional printer-pack name for direct printing; when omitted, desktop mode may show printer selection.
Returns: True after the export/print workflow completes; False is initialized before processing. Invalid reports and some print errors raise an exception. InOutFilePath receives the resulting path.
Availability: Default; file opening and printer dialogs are desktop-specific, while web mode downloads the generated file.
Example:
Printed := OEE_PrintDBReport("DailyReport", OutputPath, False, False, NULL);