New to Telerik UI for WinForms? Start a free 30-day trial

Chart printing support

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

C#
public class ChartPrinting

Inheritance: objectChartPrinting

Constructors

Creates printing support for the specified chart.

C#
public ChartPrinting(RadChart chart)
Parameters:chartRadChart

Chart whose image is rendered for printing.

Properties

Gets or sets the print document. If none has been assigned, the getter creates a document with a handler that renders the chart.

C#
[Browsable(false)]
public PrintDocument PrintDocument { get; set; }

Methods

Simply sends chart to default printer

C#
public void PrintChart()

Prints the chart using the selected dialog option.

C#
public void PrintChart(ChartPrintOptions dialogOptions)
Parameters:dialogOptionsChartPrintOptions

Controls whether printing is direct or uses the print or print-preview dialog.

Prints chart

C#
public void PrintChart(PrinterSettings printerSettings, PageSettings pageSettings, ChartPrintOptions options)
Parameters:printerSettingsPrinterSettings

Specifies information about how a document is printed, including the printer that prints it.

pageSettingsPageSettings

Specifies settings that apply to a single, printed page.

optionsChartPrintOptions

Controls whether printing is direct or uses the print or print-preview dialog.

During page rendering, the chart is temporarily resized to fit within the page margins and then restored to its original size.

Shows the page setup dialog

C#
public void ShowPageSetupDialog()