Posted 10 October 2019, 2:06 am ESTI am currently working on a project that will allow reports to be sent to a network printer after they have completed a specific transaction on our web site. We generate the report using Active Reports version 9 and I use the below code on our server side to print the report. I am able to accomplish this when I test from my workstation (using my local IIS) but when I try to do the same action once the site has been updated on our web server the print doesn't work and I don't receive any errors. Has anyone had any experience trying to do this?
Public Sub SendToPrinter(ByVal rpt As SectionReport, ByVal printerName As String, ByVal numberOfCopies As Short)
rpt.Document.Printer.PrinterSettings.Copies = numberOfCopies
rpt.Document.Printer.PrinterName = printerName
rpt.Document.Print(False, False, False)
Catch ex As Exception