Prindialog always print with default printer

milosh

Active member
Joined
May 11, 2011
Messages
33
Programming Experience
1-3
Hi all.

I have problem when printing document.
The code:
VB.NET:
 If PrintDialog1.ShowDialog() = DialogResult.OK Then
            If clickedOnBtn1 Then
                PrintDocument2.Print()
            Else
                PrintDocument1.Print()
            End If
        End If

But when I click on button which calls this piece of code, and select printer that is not default, document is printed but with default printer?
What is going wrong?
 
But how to control if I have more pages to print and more copies?
Number of copies that printer outputs for a print job is transferred from dialog to document automatically.
more pages
Usually you indicate that by e.HasMorePages in PrintPage event handler - unless you mean something else entirely.
 
Back
Top