Solved

print with a font not installed in the system

Posted on 2006-07-11
8
1,647 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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