|
-
Jan 16th, 2002, 09:02 PM
#1
printing problem! please help
hey guys,
plz help me out with this! Ive got a richtextbox that i want to print from. I followed this code from MSDN and it works but the problem is that the text comes out to something like 9-point font and arial.
How do i change it to TimesNewRoman 13-point font before it goes to the printer??
Private Sub cmdWritePrint_Click()
CommonDialog1.Flags = cdlPDReturnDC + cdlPDNoPageNums
If rtbWrite.SelLength = 0 Then
CommonDialog1.Flags = CommonDialog1.Flags + cdlPDAllPages
Else
CommonDialog1.Flags = CommonDialog1.Flags + cdlPDSelection
End If
CommonDialog1.ShowPrinter
Printer.Print ""
rtbWrite.SelPrint CommonDialog1.hDC
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|