Hi all.
I have problem when printing document.
The code:
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?
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?