Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change printer font
Message
From
02/04/2003 17:06:03
 
 
To
02/04/2003 16:35:52
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00773272
Message ID:
00773292
Views:
10
Try:

Private Sub mnuPrint_Click()
Dim BeginPage, EndPage, NumCopies, i

CommonDialog1.CancelError = True
On Error GoTo ErrHandler
CommonDialog1.ShowPrinter
BeginPage = CommonDialog1.FromPage
EndPage = CommonDialog1.ToPage
NumCopies = CommonDialog1.Copies
Printer.FontName = "Courier New"
Printer.FontSize = 12
For i = 1 To NumCopies
Printer.Print txtTerm.Text
Printer.EndDoc
Next i
Exit Sub
ErrHandler:


You see this font on the highlighted line above.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform