How to print a line using internal printer font ?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top