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:

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
ALLEN BRADLEY 800T N169 SERIES B BULB LAMP 130 VOLTS 120 MB CLEAR NEW IN BAG
ALLEN BRADLEY 800T N169 SERIES B BULB LAMP 130 VOLTS 120 MB CLEAR NEW IN BAG
$4.12
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
Grote Driving Lamp Yellow Clear 500 Series 05151
Grote Driving Lamp Yellow Clear 500 Series 05151
$99.13
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
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
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
$38.39
Intermatic WP1000C Guardian Series Single Gang Weatherproof While In Use Cover
Intermatic WP1000C Guardian Series Single Gang Weatherproof While In Use Cover
$15.97
Accuride C 3832 C28P 3832 Series 28 Full Extension Drawer Slide 1 Pair
Accuride C 3832 C28P 3832 Series 28 Full Extension Drawer Slide 1 Pair
$33.64
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
Sandusky Lee CA2V362442 06 Elite Series Clear View Counter Height Storage Cabine
Sandusky Lee CA2V362442 06 Elite Series Clear View Counter Height Storage Cabine
$264.29

Just Purchased Series Clear:


accuride c 3832c28p 3832 series 28 full extension drawer slide 1 pair, allen bradley 855tb10tl7 steady led stack light w clear lens series c 120vac, grote driving lamp yellowclear 500 series 05151, ilsco ldaldb series power distribution block clear cover r0854 new lot of 2, allen bradley 800tn169 series b bulblamp 130 volts 120 mb clear new in bag, sandusky lee ca2v36244206 elite series clear view counter height storage cabine, 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, cutler hammer 10250tc25 series a4 clear plastic lens button lot of 2 g114, 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.