I want to print directly without viewing and with particular record
This line show all record
RptObject.PrintToPrinter(1, false, 0, 0)
What I have tried:
'RPTfrmCashReport.CrystalReportViewer1.ReportSource = InvoicePrint
RptObject.PrintToPrinter(1, false, 0, 0)
CrystalReportViewer1.SelectionFormula = "{Invoice_Master.Invoice_no} = '" & LblInvoiceno.Text & "'"