Page 1 of 1

printer setting problem in VB.NET

Posted: Wed Sep 22, 2004 3:07 am
by 9523566
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.

Posted: Wed Sep 22, 2004 8:33 am
by Pep
Hi Takeda,

where you use the AddChart method ? You must add the Charts you want to print in the PreviewPanel.

You cna see one VB example in Help File (search in the index for Printpage).