rustyd Posted February 16, 2004 Posted February 16, 2004 (edited) In VB6 you could access the printer fonts with Printer.FontCount and Printer.Fonts(). Is their a similar functionality in .NET? If so, where can I find it? Specifically I'm trying to print to a Dot Matrix printer. The dot matrix printer fonts do not get listed when the fonts are enumerated into a listbox. Now I'm trying to select the font through code by selecting the dot matrix printer and then setting the font. I've tried: dlg.Document = pd Dim result As DialogResult = dlg.ShowDialog() printFont = New Font("Draft10cpi", 10) and dlg.Document = pd Dim result As DialogResult = dlg.ShowDialog() printFont = New Font("Draft 10cpi", 10) but when I did: Console.WriteLine(printFont.ToString) Both returned San Serif. Edited February 16, 2004 by rustyd Quote rustyd
*Gurus* divil Posted February 17, 2004 *Gurus* Posted February 17, 2004 GDI+ and .NET can only use TrueType fonts. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
rustyd Posted February 17, 2004 Author Posted February 17, 2004 Thanks, Divil. Can I set the font to "Draft 10cpi" using API calls to print to a dot matrix printer? Quote rustyd
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.