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 Im 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 Im trying to select the font through code by selecting the dot matrix printer and then setting the font.
Ive tried:
and
but when I did:
Both returned San Serif.
Is their a similar functionality in .NET? If so, where can I find it?
Specifically Im 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 Im trying to select the font through code by selecting the dot matrix printer and then setting the font.
Ive tried:
Code:
dlg.Document = pd
Dim result As DialogResult = dlg.ShowDialog()
printFont = New Font("Draft10cpi", 10)
and
Code:
dlg.Document = pd
Dim result As DialogResult = dlg.ShowDialog()
printFont = New Font("Draft 10cpi", 10)
but when I did:
Code:
Console.WriteLine(printFont.ToString)
Last edited by a moderator: