A newer version of this page is available. Switch to the current version.

ReportViewer.WriteHtmlTo(String) Method

Creates an HTML file that contains a Web representation of the report. The destination directory for the created file will be determined by the specified path.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v18.2.Web.WebForms.dll


public void WriteHtmlTo(
    string filePath
Public Sub WriteHtmlTo(
    filePath As String


Name Type Description
filePath String

A String value containing the full path to the HTML file to be created.


The file generated by this method contains a Web representation of the report returned by the ReportViewer.Report property. If the file already exists at the specified path it will be overwritten without warning.

See Also