printer setting problem in VB.NET
Posted: Wed Sep 22, 2004 3:07 am
Please advise me or show small code.
with VB,NET
following code does not effect printer setting by printdialog.
Alway show default printer only.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim result As DialogResult
PrintDialog1.PrinterSettings = New Printing.PrinterSettings
result = PrintDialog1.ShowDialog()
If result = DialogResult.OK Then
AxTeePreviewPanel1.PrintPage()
End If
End Sub
Best Refards, Thanks in advance.
with VB,NET
following code does not effect printer setting by printdialog.
Alway show default printer only.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim result As DialogResult
PrintDialog1.PrinterSettings = New Printing.PrinterSettings
result = PrintDialog1.ShowDialog()
If result = DialogResult.OK Then
AxTeePreviewPanel1.PrintPage()
End If
End Sub
Best Refards, Thanks in advance.