Spread ASP.NET 6.0 Product Documentation
CanPrint Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Chart Namespace > SpreadChart Class : CanPrint Property


Glossary Item Box

Gets or sets whether to print the current Chart when printing.

Syntax

Visual Basic (Declaration) 
Public Overridable Property CanPrint As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SpreadChart
Dim value As Boolean
 
instance.CanPrint = value
 
value = instance.CanPrint
C# 
public virtual bool CanPrint {get; set;}

Example

This example sets the print property for the chart control.
C#Copy Code
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart();
chart.Model = model;
chart.CanPrint = true;
FpSpread1.Sheets[0].Charts.Add(chart);
Visual BasicCopy Code
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.Model = model
chart.CanPrint = True
FpSpread1.Sheets(0).Charts.Add(chart)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.