How to handle OK button of PrintDialog (ugent)

jerry_hokh

Active member
Joined
Mar 14, 2006
Messages
25
Programming Experience
1-3
Hi guys,
It would be appreciated if any one can help me on this.

as i supposed, after asigned a PrintDocument to PrintDialog.Document then after the OK button of the PrintDialog it will print the content of my PrintDocument.But it didnt.

so i try this:
MyPrintDlg.AllowSomePages = True
If (MyPrintDlg.ShowDialog() = DialogResult.OK) Then
_myPrintDocument.Print
End If

It's works, however i encounter another problem:
I cannot print my selected page (e.g I want to print the 5th page) instead it's print ALL.
I knew the prolem is because i called _myPrintDocument.Print But if not call this it will not print
anything at all...


Please help me out.

Thanks very much in advanced.
Jerry.
 
Last edited:
Back
Top