Using printPreview As New PrintPreviewDialog()
' Dim x As New Printing.PrintDocument()
' AddHandler x.PrintPage, AddressOf PrintData
printPreview.Document = Me.CurrentDocument
If ShowPrinterSetup Then
Dim x As New PrintDialog()
x.Document = CurrentDocument
x.ShowDialog(Anchor)
End If
whichPage = 0
Return printPreview.ShowDialog(Anchor)
End Using
So far no matter what I clicked in printpreview, the showdialog returns cancel? How can I tell if the user did print? I'd like to clear the print queue of items if they did actually print to a printer or ask them if I should clear it, but only if they actually did print something.