Printing with hardware fonts

  • Thread starter Thread starter F. Potier
  • Start date Start date
F

F. Potier

I want to print with a small Epson ticket printer (Epson TM-T88II)

As the printing is very slow with the windows fonts I'm looking for some
code to make use the hardware fonts built in the printer.

Can somebody help me with tis code?....
 
Thank you for the answer but how can I do that ?

I'm not an expert in Vb.Net and I'm using a "PrintDocument" control
(System.Darawing.Printing.PrintDocument) called "prnTicket" with code
looking like that :
.......

prnTicket.PrinterSettings.PrinterName = "EPSON TM-T88II Partial cut"

prnReport.Print()

.....



Private Sub prnReportDay_PrintPage(ByVal sender As System.Object, ByVal e As
System.Drawing.Printing.PrintPageEventArgs) Handles prnReport.PrintPage



.....

Dim AlignementDroite As New StringFormat

AlignementDroite.Alignment = StringAlignment.Far

AlignementDroite.LineAlignment = StringAlignment.Center



......

Dim RectTitre3 As New RectangleF(20, 25, 150, 20)

e.Graphics.DrawString((ReportTitle3).Trim, New Font("Arial", 14,
FontStyle.Bold), Brushes.Black, RectTitre3, AlignementCentre)



.....

End Sub



This code works very well in graphics mode with the standard Windows
fonts....



But could you give me a sample of code to send raw data to the printer.



Thanks





F. Potier
 

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

Back
Top