0

Private Sub cmdprint_Click()

i am searching the code of the command button for printing, at the above.. now,
the
textidno.text =
textborrowersname.text =

what is code after the " = "

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by AndreRet
0

Make use of the common dialog control (Under 'Projects/Components/Microsoft Common Dialog Control 6.0 (spxx) xx being your service pack utilized'. When clicking on the command button -

Command1_Click()
cdlgPrint.PrinterDefault = True 'If using the default printer
cdlgPrint.Orientation = cdlLandscape 'Depending on the orientation needed, portrait or landscape
cdlgPrint.Print Text1.Text

Play with all the different properties to ensure a perfect print.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.