neu
This commit is contained in:
@@ -38,9 +38,9 @@ End Class
|
||||
|
||||
Public Class cProgramFunctions
|
||||
|
||||
Public Shared Function printRpt(rpt As GrapeCity.ActiveReports.SectionReport, printername As String) As Boolean
|
||||
Public Shared Function printRpt(rpt As GrapeCity.ActiveReports.SectionReport, printername As String, Optional runReport As Boolean = True) As Boolean
|
||||
Try
|
||||
rpt.Run(False)
|
||||
If runReport Then rpt.Run(False)
|
||||
rpt.Document.Printer.PrinterSettings.Copies = 1
|
||||
If printername <> "" Then
|
||||
rpt.Document.Printer.PrinterName = printername
|
||||
|
||||
Reference in New Issue
Block a user