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:

Brand New Speedometer Clear Lens High Quality Early Lambretta Series 3
Brand New Speedometer Clear Lens High Quality Early Lambretta Series 3
$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
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
$6.49
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.24
NEW SQUARE D 9001 KU27 SERIES F BOOT PROTECTIVE CLEAR CAP
NEW SQUARE D 9001 KU27 SERIES F BOOT PROTECTIVE CLEAR CAP
$7.95
Riedel Wine Series Oaked Chardonnay Glass Set of 2
Riedel Wine Series Oaked Chardonnay Glass Set of 2
$28.41
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
2 Pack Small 18oz Cup  Sip N Seal Lids for Nitri Ninja Auto iQ 1000w Series
2 Pack Small 18oz Cup Sip N Seal Lids for Nitri Ninja Auto iQ 1000w Series
$32.80
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
Plano 7771 Guide Series Tackle System
Plano 7771 Guide Series Tackle System
$60.54
Ahi USA 200 Series Cast Fishing Net Clear 8 Feet
Ahi USA 200 Series Cast Fishing Net Clear 8 Feet
$86.49
WAC Lighting LHT 817 PT WT L Series Low Voltage Track Head 50W
WAC Lighting LHT 817 PT WT L Series Low Voltage Track Head 50W
$121.19
Kalita Wave Dripper 155 series glass 1 2 person  05045 japan import by
Kalita Wave Dripper 155 series glass 1 2 person 05045 japan import by
$21.85
Grote Driving Lamp Yellow Clear 500 Series 05151
Grote Driving Lamp Yellow Clear 500 Series 05151
$108.35
Allen Bradley 800T N45 Clear Exended Head Cap Series C
Allen Bradley 800T N45 Clear Exended Head Cap Series C
$6.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
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

Just Purchased Series Clear:


grote driving lamp yellowclear 500 series 05151, kalita wave dripper 155 series glass 12 person 05045 japan import by, wac lighting lht817ptwt l series low voltage track head 50w, ahi usa 200 series cast fishing net clear 8feet, plano 7771 guide series tackle system, riedel wine series oaked chardonnay glass set of 2, hazlux hazlite clear glass industrial globe model gg15g m9 series round bottom, allen bradley 855tb10tl7 steady led stack light w clear lens series c 120vac, brand new speedometer clear lenshigh quality early lambretta series 3, kuriyama k0100201x10071131651 klearon 73 series k010 clear pvc tubing, cutler hammer 10250tc25 series a4 clear plastic lens button lot of 2 g114, 2 pack small 18oz cup amp; sip n seal lids for nitri ninja autoiq 1000w series, 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, 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.