Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

print with a font not installed in the system

Posted on 2006-07-11
8
1,652 Views
Last Modified: 2013-12-03
Hi everyone:

Is there any way to print with a font that is not installed in the system, is only in the printer driver.
For example:
If i open a wordpad and after set the printer in the page settings, i'm able to choose some fonts that are not installed.

But when i try to print with these fonts in my program the fonts are not found and the Microsoft Sans Serif font is selected by default.

My code looks like this:

System.Drawing.Font printFontNormal;
     printFontNormal = new System.Drawing.Font
         ("FontB11", 9, System.Drawing.FontStyle.Regular);
The "FontB11" is not found.

Thanks in advance


0
Comment
Question by:aponcealbuerne
  • 4
  • 4
8 Comments
 
LVL 10

Expert Comment

by:athapa
ID: 17089678
If the font is missing in the system then you could install it with your setup package or while executing your application. So, may be you should validate if the required font is available when your application starts.

AT
0
 
LVL 4

Author Comment

by:aponcealbuerne
ID: 17091307
I don't have the fonts, they are bult in in the printer or in the driver printer...
0
 
LVL 10

Expert Comment

by:athapa
ID: 17094055
Are these PostScript printers?

AT
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 4

Author Comment

by:aponcealbuerne
ID: 17095151

It's a TM-U220 Receipt Printer from epson a printer for POS.
0
 
LVL 10

Accepted Solution

by:
athapa earned 500 total points
ID: 17098552
Try using the Win32 API calls to send the your data and escape sequence directly to the printer.

This article takes about how to use some of the printer related native calls and has a small wrapper class.
http://support.microsoft.com/Default.aspx?kbid=322091

0
 
LVL 10

Expert Comment

by:athapa
ID: 17098674
Check this post too. Basically it says that you have to use Win32 calls to access device specific features (such as bar code font stored in the printer, etc).
http://www.dotnet247.com/247reference/msgs/18/92299.aspx
0
 
LVL 4

Author Comment

by:aponcealbuerne
ID: 17100473
ok thanks athapa, I'll check it and let you know
0
 
LVL 4

Author Comment

by:aponcealbuerne
ID: 17106182
thanks athapa it works just FINE !!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question