Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

print with a font not installed in the system

Posted on 2006-07-11
8
Medium Priority
?
1,697 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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!
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

972 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