Skip to main content
A newer version of this page is available.
All docs
V20.2

SankeyDiagramControl.ExportToDocx(String) Method

Exports the control in the Office Open XML file format and saves it to the specified DOCX file.

Namespace: DevExpress.XtraCharts.Sankey

Assembly: DevExpress.XtraCharts.v20.2.UI.dll

NuGet Package: DevExpress.Win.Charts

Declaration

public void ExportToDocx(
    string filePath
)

Parameters

Name Type Description
filePath String

A string value which specifies the full path (including the file name and extension) where the DOCX file should be created.

Remarks

To show the standard Print dialog, use the SankeyDiagramControl.Print method. This dialog allows users to print the diagram, select the printer, specify the range of pages to print, the number of copies, and so on.

To display the DevExpress Print Preview, use one of the following methods:

Method Description
SankeyDiagramControl.ShowPrintPreview Creates a print document and displays the Print Preview dialog.
SankeyDiagramControl.ShowRibbonPrintPreview Creates a print document and displays the Print Preview with the Ribbon toolbar.

To export the diagram, use one of the ExportTo~ methods (for example, call the SankeyDiagramControl.ExportToPdf method to export the diagram to a PDF file).

Important

The diagram can be previewed, printed or exported to other formats only if the Printing library is available (except when you export to raster and vector images). Ensure you add a reference to the DevExpress.XtraPrinting.v20.2 assembly.

Note that the DevExpress.Pdf.Core library should be available to export a diagram to PDF.

See Also