Good Morning.
I cannot figure out why this does not work:
Code:
Procedure RunStatsAllReport Integer iShowAll String sDateRange Boolean bPrintToScreen Variant [ ] [ ] vAllStats
String sReportID
Get OpenReport to sReportID
Set psFunction sReportID 'DateRange' to ("return '"+sDateRange+"'")
Send TableData sReportID 0 vAllStats
If (bPrintToScreen) Send DisplayReport
Else begin
Set peOutputDestination to PRINT_TO_PRINTER_NO_DIALOG
Send PrintReport 0
End
End_Procedure
For some reason, I still get the printer dialog when I print. I don't understand why.
Any help would be appreciated. Thanks!