Is there a way to print simple text in Courier New? No pictures, no fancy fonts, it's all the same size, and no margins, etc. Is there a VB.NET function for this?
Printable View
Is there a way to print simple text in Courier New? No pictures, no fancy fonts, it's all the same size, and no margins, etc. Is there a VB.NET function for this?
What do you want to print from?, a RichTextBox? There's a complete example here of printing here;
http://www.vbdotnetheaven.com/Upload...nginVBNET.aspx
You can print in any font supported under "System.Drawing". So if Courier New is there you can print with it.
You can see available fonts using
Code:Dim MyFonts As System.Drawing.Text.InstalledFontCollection = New _
System.Drawing.Text.InstalledFontCollection
Dim Str As String = String.Empty
For Each fam As FontFamily In MyFonts.Families
Str += fam.Name & " "
Next
MessageBox.Show(Str)
you need to add a printdocument to your project.
in the printdocument_printpage event you use drawstring, in which you can specify your font.
try that + if you need any more help ask again