I try to print reports without any gui (like ReportViewer or Print Dialog), to generate a lot of different documents from code behind. I would like that users can coninue to work during this process.
I trying to do that in this way:
Public
Sub
QuickReportPrint(Config
As
Config, ReportSource
As
ReportSource)
Dim
printer = Config.PrinterName
Dim
setting
As
New
PrinterSettings()
setting.PrinterName = printer
setting.Copies = Config.CopiesPrint
If
setting.SupportsColor
Then
setting.DefaultPageSettings.Color =true
End
If
Dim
paperSource = GetPaperSource(setting, Config.PaperSource)
If
papaerSource IsNot
Nothing
Then
setting.DefaultPageSettings.PaperSource = paperSource
Dim
processor =
New
ReportProcessor()
processor.PrintReport(ReportSource, setting)
End
Sub
Unfortunatly, while i'm printing my reports, apears a popup windows, like those one in atatched file.