Posted 22 May 2019, 12:46 am EST
My reports print fine via the previewer but I need to print some of them directly to the default printer and not via the previewer.
Dim ThisSectionReport = New arPlayerList
ThisSectionReport.ThisSQL = sql [i]' this passes the sql string and the report itself connects to the database[/i]
ThisSectionReport.Run()
ThisSectionReport.Document.Printer.Print()
Dim sectionDocument = ThisSectionReport.Document
sectionDocument.Print()
The final line gives an error “print is not member of sectionDocument” and when I change the final line to sectionDocument.Printer.Print() it prints but just a blank page emerges.