473,811 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1951

"F. Potier" <fp***@wanadoo. com> schrieb im Newsbeitrag
news:%2******** ********@TK2MSF TNGP14.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 "PrintDocum ent" control
(System.Darawin g.Printing.Prin tDocument) called "prnTicket" with code
looking like that :
.......

prnTicket.Print erSettings.Prin terName = "EPSON TM-T88II Partial cut"

prnReport.Print ()

.....

Private Sub prnReportDay_Pr intPage(ByVal sender As System.Object, ByVal e As
System.Drawing. Printing.PrintP ageEventArgs) Handles prnReport.Print Page

.....

Dim AlignementDroit e As New StringFormat

AlignementDroit e.Alignment = StringAlignment .Far

AlignementDroit e.LineAlignment = StringAlignment .Center

......

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

e.Graphics.Draw String((ReportT itle3).Trim, New Font("Arial", 14,
FontStyle.Bold) , Brushes.Black, RectTitre3, AlignementCentr e)

.....

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
4340
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 guessing that doing a screendump via a standard inkjet isn't going to work (i.e. might need somehow to print to a barcode printer!) Any ideas where to start? Thanks in advance.
3
2658
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 select a printer and output my data. 1. If I am in the VB5 IDE, the printer output appears to be non-proportional and looks perfect because it all lines up. 2. If I am running the compiled program by itself, the printer output uses a
7
3134
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 coming out huge when I print at 8 point, tiny when I'm printing at 14 point (so tiny that it looks like subscripts), the margins are reset at random, and so on. Plus it doesn't recognize all my fonts. I don't care if the pretty printer is in an...
4
6413
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, underline, different fonts, etc from within a Perl script. I have absolutely no idea where to start or what to do. My
7
484
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 printed page are fuzzy. The following code sample will illustrate the point: Start of page load code sample '=========================
4
9381
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 this differences increases with the increase number of labels. The code is as follwods: Here rdr = OleDbDataReader Font is Times New Roman, 12pt
5
1548
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 WYSIWIG result with GDI (as summarized here: http://msdn.microsoft.com/msdnmag/issues/06/03/TextRendering/default.aspx ) Therefore, if I want to have good WYSIWUG results in my method I need to know if we are printing or not. I don't want to...
2
3786
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 possible. it is a POS printer (for restaurants) and the printer internal fonts are a MUST for printing speed. as far as i know printer internal fonts are only accessable through GDI, so all my printing is GDI up to now)
0
1393
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 I'm off base, please feel free to let me know. I performed a test printing the font of "OCR A Extended" to a printer in my office but didn't reproduce the problem on my side. The font was printed properly in my test. The model of the printer I...
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.