I'm using VB6 and I need to print a horizontal line on a report printout. The printout is a report and I would like to print the line under the Report title.
Can anyone tell me where to add the "Draw Line" code in the following:
Private Sub cmdPrintRecord_Click()
Screen.MousePointer = vbHourglass
Printer.FontName = "MS Sans Serif"
Printer.FontSize = 16
Printer.FontBold = True
Printer.Orientation = 2
Printer.PaperSize = vbPRPSLegal 'Use Papersize = 3 (or vbPRPSTabloid) for 11X17 paper.)
Printer.Print: Printer.Print 'Skip 2 lines
Printer.Print vbNewLine & Space(61) & "oCCM MODELING DATABASE"
Printer.FontSize = 10
Printer.Print Space(128) & Format(Date)
'(I WOULD LIKE THE HORIZONTAL LINE PRINTED HERE ON THE REPORT)
Printer.EndDoc
Beep
Screen.MousePointer = vbDefault
MsgBox ("Print Completed!")
End Sub
Any help would be greatly appreciated!
Can anyone tell me where to add the "Draw Line" code in the following:
Private Sub cmdPrintRecord_Click()
Screen.MousePointer = vbHourglass
Printer.FontName = "MS Sans Serif"
Printer.FontSize = 16
Printer.FontBold = True
Printer.Orientation = 2
Printer.PaperSize = vbPRPSLegal 'Use Papersize = 3 (or vbPRPSTabloid) for 11X17 paper.)
Printer.Print: Printer.Print 'Skip 2 lines
Printer.Print vbNewLine & Space(61) & "oCCM MODELING DATABASE"
Printer.FontSize = 10
Printer.Print Space(128) & Format(Date)
'(I WOULD LIKE THE HORIZONTAL LINE PRINTED HERE ON THE REPORT)
Printer.EndDoc
Beep
Screen.MousePointer = vbDefault
MsgBox ("Print Completed!")
End Sub
Any help would be greatly appreciated!