Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo
using common dialog for printer operation
Highlight all by clicking in box
.DialogTitle = "Print"
.CancelError = True
' Prepare to print using the printer object.
.PrinterDefault = True
' Disable printing to file and individual page printing.
.Flags = cdlPDDisablePrintingToFile Or cdlPDNoPageNums
If TxtT1.SelLength = 0 Then
'Hide Selection button if there is no selected text.
.Flags = .Flags Or cdlPDNoSelection
'Else enable the Selection button and make it the default
.Flags = .Flags Or cdlPDSelection
' We need to know whether the user decided to print.
If Err = 0 Then
If .Flags And cdlPDSelction Then
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.