Change the Default File Format

To change the default file format of a document exported by the Bold Reports® ASP.NET Web Forms Report Writer, set the format property in the export options before you export the document. You can choose any other file format that the selected file type supports.

How do I change the Word document type?

To change the Word document type in the Report Writer, set the FormatType property to the required Word document version.

writer.WordOptions = new BoldReports.Writer.WordOptions()
{
    FormatType = WordFormatType.Docx
};

How do I change the Excel document type?

To change the Excel document type in the Report Writer, set the ExcelSaveType property to the required Excel document version.

writer.ExcelOptions = new BoldReports.Writer.ExcelOptions()
{
    ExcelSaveType = BoldReports.Writer.ExcelVersion.Excel2013
};

See also