473,320 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Printing with hardware fonts

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?....
Nov 21 '05 #1
2 1926

"F. Potier" <fp***@wanadoo.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP14.phx.gbl...
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?....


Hi,

send the rawdata tothe printer:
http://support.microsoft.com/kb/322090/EN-US/

Greeting

Thomas
Nov 21 '05 #2
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


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Murray Elliot | last post by:
Just wondering if anyone has any ideas on how to solve a particular problem. A client wants to print barcode labels from their (web/php based application). The barcode labels are very small, so I'm...
3
by: Val Mehling | last post by:
Up until now I have been able to avoid using Common Dialog by accessing printers directly. This is no longer possible, so- Using VB5 under XP Home Edition. I use the Common Dialog functions to...
7
by: Kamilche | last post by:
I'm pretty desperate to get color syntax printing. I just tried out the evaluation version of 'Komodo', which several people in here suggested, and its print features are terrible. The text is...
4
by: Arthur | last post by:
Hi Everyone, I'm having a real hard time with this. Maybe some smarter people can assist. I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be able to print Postscript, bold,...
7
by: Mark | last post by:
Hi, I am trying to create a "print preview" window for a web site using asp.net. I have got a long way down the road to the solution but the problem I have now is that the text and lines on the...
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
5
by: Lloyd Dupont | last post by:
In my (C#) code I have some painting methods using Interop and GDI (win32). Unfortunately, as you might know, you have to apply some transformation to your space and fonts if you want to achieve...
2
by: user | last post by:
Hi all... i am trying to print an image using GDI - but the only thing i get is a black rectangle. Does anybody know what is wrong, or how else to get the bitmap on the printer (GDI+ is not...
0
by: Linda Liu[MSFT] | last post by:
Hi Al, Based on my understanding, you have an application which prints something to printers. The problem is that the font of "OCR A Extended" cannot be printed properly on some of printers. If...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.