ChartControlBase.PrintDirect(PrintQueue) Method
OBSOLETE
This method is now obsolete. Use the PrintDirect method instead.
Immediately prints the chart using the printer specified by the print queue.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
[Obsolete("This method is now obsolete. Use the DevExpress.Xpf.Charts.ChartControlBase.PrintDirect(string printerName) method instead.")]
public void PrintDirect(
PrintQueue queue
)
Parameters
Name | Type | Description |
---|---|---|
queue | PrintQueue | The print queue specifying the required printer’s queue. |
Remarks
To show the standard Print dialog, use the ChartControlBase.Print method. This dialog allows end-users to print the chart, select the printer (if required), specify the range of pages to print, the number of copies, etc.
To display the DevExpress Print Preview, use one of the following methods.
Name | Description |
---|---|
ChartControlBase.ShowPrintPreview | Creates a print document and displays the Print Preview of the document. |
ChartControlBase.ShowPrintPreviewDialog | Creates a print document and displays the Print Preview of the document as a modal window. |
ChartControlBase.ShowRibbonPrintPreview | Creates a print document and displays the Print Preview with the Ribbon toolbar of the document. |
ChartControlBase.ShowRibbonPrintPreviewDialog | Creates a print document and displays the Print Preview with the Ribbon toolbar of the document as a modal window. |
To export the chart, use the appropriate ExportTo~ method (e.g., ChartControlBase.ExportToHtml, ChartControlBase.ExportToPdf, etc.)
Important
The chart can be previewed, printed and exported only if the DXPrinting Library is available. Make sure you add a reference to the DevExpress.Xpf.Printing.v24.1 assembly.