printing text as image

RGuillermo used Ask the Experts™
Hello Experts
I am printing a receipt using visual c sharp and an EPSON thermal POS printer.

In order to print the logo i am using the following lines that work just fine.
            Bitmap bm1 = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            pictureBox1.DrawToBitmap(bm1, new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height));
            e.Graphics.DrawImage(bm1, hx, hy, wi, he);

And because I used an image
I continue printing each line of text as animage
as follows.
            // text
            hy += (he+s2);wi = 300; he = 20;
            Bitmap tit1 = new Bitmap(wi,he);
            pictureBox5.DrawToBitmap(tit1, new Rectangle(0, 0, wi, he));
            e.Graphics.DrawImage(tit1, hx , hy, wi , he);

the thing is that drawing text looses a little quality,
and the result Is not as clear as when I print text in text mode.

Is it possible, print just normal text after the logo in the same print document ?
or if I have to continue with this graphic mode what are the appropriate fonts to use when drawing text ?

this are the commands of my PRINT button
        private void Button1_Click(object sender, EventArgs e)
            PrintDialog pd = new PrintDialog();
            PrintDocument doc = new PrintDocument();
            doc.PrintPage += Doc_PrintPage;
            pd.Document = doc;

Please your help on this.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If the printer supports ESC/P then it does support mixing text and graphics. See page R-71 in the ESC/P Reference Manual (page 302 in the PDF).

If the printer runs any other command language, check the manual for that language.
RGuillermoProject Manager


We are already improving
Thank you so much!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial