Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChart.ExportToDOCX(string,Integer,Integer) Method

Exports chart content as an image container in a DOCX document and saves it to a file.

#Declaration

Delphi
procedure ExportToDOCX(const AFileName: string; AImageWidth: Integer = 0; AImageHeight: Integer = 0); overload;

#Parameters

Name Type Description
AFileName string

The absolute or relative path to the resulting DOCX file.

AImageWidth Integer

Optional. The width (in pixels) of the chart image inserted into the resulting DOCX document.

AImageHeight Integer

Optional. The height (in pixels) of the chart image inserted into the resulting DOCX document.

#Remarks

Important

Do not call the ExportToDOCX procedure in your code. To export Chart control content to a stream in DOCX format, call the control’s corresponding ExportToDOCX procedure instead.

See Also