Dodgeram01 Posted July 1, 2002 Posted July 1, 2002 I have reached a dilema. I have a PrintDocument control, and a PrintDialog Control. I set it to Show the printdialog, and then have the PrintDocument control Print. But if you hit cancel on the printdialog box, it'll still print. Does anyone know how to correctly do this? Quote Dodge Grab Life By The Horns
Flyguy Posted July 1, 2002 Posted July 1, 2002 You should check the value returned by the PrintDialog. Quote
yogipat Posted November 1, 2003 Posted November 1, 2003 Write the code as given below Dim result As DialogResult = Me.PrintDialog1.ShowDialog If result = DialogResult.OK Then If Me.PrintDialog1.PrinterSettings.IsValid Then \\Place your code here. End If End If Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.