I am using Crystal Reports for printing orders to a KOT printer. I have four different KOT printers. The items are printed according to the corresponding printer names assigned.
This works fine, but in order to increase the speed of printing I checked the "No printer" option. Then prints are coming to only one printer. When it is unchecked the problem is solved.
Code:
strSQL = ""
Dim crptDV As New ReportDocument()
Dim da As New SqlDataAdapter(strSQL, gblCon)
Dim ds As New DataSet
da.Fill(ds)
Dim path As String
path = Application.StartupPath
crptDV.Load(path & "\reports\rptItemOrder.rpt")
crptDV.SetDataSource(ds.Tables(0))
Dim parameter As New ParameterField
parameter = crptDV.ParameterFields("CompanyName")
parameter.CurrentValues.AddValue(CompName)
crptDV.PrintOptions.PrinterName = PrinterName
crptDV.Close()
crptDV.Dispose()