Posted 26 April 2021, 10:17 am EST
I can perfectly assign the default printer for a direct printing report
Example:
’ Load report definition
Me.C1Report1.Load(“C:\ticket\ticket2.xml”, “TBLTICKET Report”)
Dim doc As PrintDocument = Me.C1Report1.Document
'set Printer name to ‘doc’
doc.PrinterSettings.PrinterName = My.Settings.TicketPrinter
'print
doc.Print()
, but I can’t assign it in C1PrintPreview
I need to see the preprint in the format of the printer that I designate, but I cannot find in which part it is achieved for preview…
Me.C1Report1.Load("C:\ticket\ticket2.xml", "TBLTICKET Report") C1PrintPreviewControl1.Document = Me.C1Report1 .....??? Where Do I set the Printer name