Series Clear

how can I print a chart control in visual basic 2010?

Please write a sample code including the declarations. assume chart1 as the chart. thank you. =)

Place a Chart Control and Button on a form and paste the following into the code window.

The button uses the Chart Print manager to call up a prin preview window.

'http://msdn.microsoft.com/en-us/library/dd489237.aspx

Imports System.Windows.Forms.DataVisualization
Public Class Form1

Public Sub New()

' This call is required by the designer.
InitializeComponent()

' Add any initialization after the InitializeComponent() call.
Dim data() As Integer = {10, 20, 30, 20, 10, 0}
Dim mySeries As Charting.Series
Dim dpc As Charting.DataPointCollection

'
Chart1.Series.Clear()

mySeries = Chart1.Series.Add("Series1")
With mySeries

.Name = "SERIES 1"
.ChartArea = "ChartArea1"
.ChartType = Charting.SeriesChartType.Line
.YAxisType = Charting.AxisType.Primary
.YValuesPerPoint = 1
.YValueType = Charting.ChartValueType.Auto
dpc = .Points

End With
dpc.DataBindY(data)

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PM As Charting.PrintingManager

PM = Me.Chart1.Printing

PM.PrintPreview()

End Sub
End Class

Discover Series Clear On eBay Below:

CUTLER HAMMER 10250TC25 SERIES A4 CLEAR PLASTIC LENS BUTTON LOT OF 2 G114
CUTLER HAMMER 10250TC25 SERIES A4 CLEAR PLASTIC LENS BUTTON LOT OF 2 G114
$8.44
NEW SQUARE D 9001 KU27 SERIES F BOOT PROTECTIVE CLEAR CAP
NEW SQUARE D 9001 KU27 SERIES F BOOT PROTECTIVE CLEAR CAP
$7.95
Signal 121S 120CSB Vitalite Clear Series B1
Signal 121S 120CSB Vitalite Clear Series B1
$157.95
Allen Bradley 800T N45 Clear Exended Head Cap Series C Pack of 3
Allen Bradley 800T N45 Clear Exended Head Cap Series C Pack of 3
$17.55
Allen Bradley 800T N45 Clear Exended Head Cap Series C Pack of 10
Allen Bradley 800T N45 Clear Exended Head Cap Series C Pack of 10
$69.00
Allen Bradley 855T B10TL7 Steady LED Stack Light w Clear Lens Series C 120VAC
Allen Bradley 855T B10TL7 Steady LED Stack Light w Clear Lens Series C 120VAC
$33.59
Intermatic WP1000C Guardian Series Single Gang Weatherproof While In Use Cover
Intermatic WP1000C Guardian Series Single Gang Weatherproof While In Use Cover
$15.97
New Speedometer Clear Lens For Early Lambretta Series 3 Models
New Speedometer Clear Lens For Early Lambretta Series 3 Models
$13.99
Allen Bradley 800T N45 Clear Exended Head Cap Series C
Allen Bradley 800T N45 Clear Exended Head Cap Series C
$6.00
Allen Bradley 800T N45 Clear Exended Head Cap Series B Pack of 3
Allen Bradley 800T N45 Clear Exended Head Cap Series B Pack of 3
$17.77
ILSCO LDA LDB Series Power Distribution Block Clear Cover R0854 NEW Lot of 2
ILSCO LDA LDB Series Power Distribution Block Clear Cover R0854 NEW Lot of 2
$12.50
KURIYAMA K010 0201X100 71131651 KLEARON 73 SERIES K010 CLEAR PVC TUBING
KURIYAMA K010 0201X100 71131651 KLEARON 73 SERIES K010 CLEAR PVC TUBING
$38.00
Brand New Speedometer Clear Lens High Quality Early Lambretta Series 3
Brand New Speedometer Clear Lens High Quality Early Lambretta Series 3
$14.99
HAZLUX HAZLITE CLEAR GLASS INDUSTRIAL GLOBE MODEL GG15G M9 SERIES ROUND BOTTOM
HAZLUX HAZLITE CLEAR GLASS INDUSTRIAL GLOBE MODEL GG15G M9 SERIES ROUND BOTTOM
$14.99
NIB Panduit Panduct DB C Series Divider Wall Mounting Base CLEAR APROX 100
NIB Panduit Panduct DB C Series Divider Wall Mounting Base CLEAR APROX 100
$19.99

Just Purchased Series Clear:


hazlux hazlite clear glass industrial globe model gg15g m9 series round bottom, brand new speedometer clear lenshigh quality early lambretta series 3, new speedometer clear lens for early lambretta series 3 models, kuriyama k0100201x10071131651 klearon 73 series k010 clear pvc tubing, cutler hammer 10250tc25 series a4 clear plastic lens button lot of 2 g114, allen bradley 855tb10tl7 steady led stack light w clear lens series c 120vac, ilsco ldaldb series power distribution block clear cover r0854 new lot of 2, nib panduit panduct dbc series divider wall mounting base clear aprox 100, intermatic wp1000c guardian series single gang weatherproof whileinuse cover, new square d 9001ku27 series f bootprotective clear cap, allen bradley 800tn45 clear exended head cap series c pack of 3, allen bradley 800tn45 clear exended head cap series c pack of 10, allen bradley 800tn45 clear exended head cap series c, allen bradley 800tn45 clear exended head cap series b pack of 3, signal 121s120csb vitalite clear series b1

Comments are closed.