B
Bassam
Hello
any one knows how to print a text line to a printer from inside vb.net or c#
using internal printer font not an OS true type font ?
I tried system.drawing.printing and printdocument but did not work !
Private Sub PrintToCustomerPanel()
Dim pd As New PrintDocument
AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage
pd.PrinterSettings.PrinterName = "BIXOLON SAMSUNG BCD-1000"
pd.Print()
End Sub
Private Sub pd_PrintPage(ByVal sender As Object, ByVal ev As
PrintPageEventArgs)
Dim fnt As New Font("BCD 1st Line", 10)
ev.Graphics.DrawString("This Item, 570", fnt, Brushes.Black, 0, 0)
ev.HasMorePages = False
End Sub
any help is very appreciated
thank you
Bassam
any one knows how to print a text line to a printer from inside vb.net or c#
using internal printer font not an OS true type font ?
I tried system.drawing.printing and printdocument but did not work !
Private Sub PrintToCustomerPanel()
Dim pd As New PrintDocument
AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage
pd.PrinterSettings.PrinterName = "BIXOLON SAMSUNG BCD-1000"
pd.Print()
End Sub
Private Sub pd_PrintPage(ByVal sender As Object, ByVal ev As
PrintPageEventArgs)
Dim fnt As New Font("BCD 1st Line", 10)
ev.Graphics.DrawString("This Item, 570", fnt, Brushes.Black, 0, 0)
ev.HasMorePages = False
End Sub
any help is very appreciated
thank you
Bassam