|
-
April 10th, 2001, 12:38 PM
#1
printing
I set up the common dialog printer to show
cmdlg.show printer
If the user clicks cancel then i want it to be cancelled. I even tried using this
cmdlg.show printer
cmdlg.cancelerror = true
however if i click ok or cancel it still prints. I need to know how to get the cancel button to work.
Thanks
Samantha
-
April 10th, 2001, 01:13 PM
#2
Re: printing
First add in your project "Microsoft Common Dialog Control"
(Comdlg32.ocx file) with menu Project / Components.
Then add one CommonDialog into your Form : CommonDialog1,
Private Sub Command1_Click()
' This enabled Printer setup dialog box
' to change the default printer
Printer.TrackDefault = True
CommonDialog1.CancelError = True
On Error Resume Next
CommonDialog1.ShowPrinter
If Err = cdlCancel Then Exit Sub ' For Cancel
' Then use properties of CommonDialog1 like :
' CommonDialog1.Copies
' CommonDialog1.FontName
' CommonDialog1.Orientation ...
End Sub
Iouri Boutchkine
[email protected]
-
April 11th, 2001, 02:46 AM
#3
Re: printing
Already out of vote...!
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
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
|