Last post May 20, 2012 03:49 AM by sultani.khalid.af
May 20, 2012 01:38 AM|sultani.khalid.af|LINK
is there any way to send the results to printer rather then opening and the clicking printer button in the toolbar.
i am using crystal report viewer for this purpose, i use something like below . now how can i bind the report document which sent to printer to crystal report viewer.
any option available on crystalreportviewer which send directly to printer.
May 20, 2012 03:49 AM|sultani.khalid.af|LINK
below code helped me i will post as a sample .hope it will help some one else i removed crytal report viewer and used reportdocument instead.
Dim reportname As String = Server.MapPath(Request.QueryString("ReportName"))
Dim rpt As New ReportDocument
rpt.PrintToPrinter(1, False, 0, 0)