K
Kumar
Hello,
What will be the equivalent VBA code for the following VB code?? (The
code prints RichTextBox control).
Private Sub cmdDirPrint_Click()
ComDiaPropPrint.Flags = cdlPDReturnDC + cdlPDNoPageNums
If rtbPropDirections.SelLength = 0 Then
ComDiaPropPrint.Flags = ComDiaPropPrint.Flags + cdlPDAllPages
Else
ComDiaPropPrint.Flags = ComDiaPropPrint.Flags + cdlPDSelection
End If
ComDiaPropPrint.ShowPrinter
printer.Print ""
rtbPropDirections.SelPrint printer.hDC
printer.enddoc
End Sub
Thanks
Kumar
What will be the equivalent VBA code for the following VB code?? (The
code prints RichTextBox control).
Private Sub cmdDirPrint_Click()
ComDiaPropPrint.Flags = cdlPDReturnDC + cdlPDNoPageNums
If rtbPropDirections.SelLength = 0 Then
ComDiaPropPrint.Flags = ComDiaPropPrint.Flags + cdlPDAllPages
Else
ComDiaPropPrint.Flags = ComDiaPropPrint.Flags + cdlPDSelection
End If
ComDiaPropPrint.ShowPrinter
printer.Print ""
rtbPropDirections.SelPrint printer.hDC
printer.enddoc
End Sub
Thanks
Kumar