Posted 8 May 2021, 7:39 am EST
When sending to print the C1report takes a lot to open the dialog for printing or is to show the preview…
’ Load report definition
Me.C1Report1.Load(“C:\ticket\ticket2.xml”, “TBLTICKET Report”)
Dim doc As PrintDocument = Me.C1Report1.Document doc.PrinterSettings.PrinterName = My.Settings.TicketPrinter ' Show a PrintDialog so user can customize the printing Dim pd As PrintDialog = New PrintDialog() pd.Document = doc ' Use PrinterSettings in report document pd.PrinterSettings = doc.PrinterSettings ' Show the dialog and print the report If pd.ShowDialog() = DialogResult.OK Then doc.Print() End If ' Cleanup and release PrintDialog resources pd.Dispose()
How can I do it faster?