printer setting problem in VB.NET

TeeChart for ActiveX, COM and ASP
Post Reply
M.Takeda
Newbie
Newbie
Posts: 18
Joined: Tue Aug 17, 2004 4:00 am

printer setting problem in VB.NET

Post by M.Takeda » 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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Sep 22, 2004 8:33 am

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).

Post Reply