Back to Devexpress

ASPxClientWebChartControl.SaveToWindow(format) Method

aspnet-js-aspxclientwebchartcontrol-dot-savetowindow-x28-format-x29.md

latest1.1 KB
Original Source

ASPxClientWebChartControl.SaveToWindow(format) Method

Exports a report to the file of the specified format, and shows it in a new Web Browser window.

Declaration

ts
SaveToWindow(
    format: string
): void

Parameters

NameTypeDescription
formatstring

A string value specifying a format in which a report should be exported.

|

Remarks

The following export formats can be used as a format parameter passed to the SaveToWindow method:

  • “pdf”
  • “xls”
  • “xlsx”
  • “rtf”
  • “mht”
  • “png”
  • “jpeg”
  • “bmp”
  • “tiff”
  • “gif”

Note

Since exporting a chart to PDF is based upon the Pdf.Core library, don’t forget to add a reference to the DevExpress.Pdf.Core assembly into your project’s References list.

For more information, refer to How to: Export a Chart.

See Also

ASPxClientWebChartControl Class

ASPxClientWebChartControl Members