Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

print with a font not installed in the system

Posted on 2006-07-11
8
Medium Priority
?
1,689 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
[X]
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
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
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…

704 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