Users can change the default file format to any other file format that is supported by the selected file type. It includes APIs to set the formats before exporting the document. Refer to the following section to change the default file formats.
You can save the report to the required Word document version by setting the FormatType
property.
writer.WordOptions = new BoldReports.Writer.WordOptions()
{
FormatType = WordFormatType.Docx
};
You can save the report to the required Excel document version by setting the ExcelSaveType
property.
writer.ExcelOptions = new BoldReports.Writer.ExcelOptions()
{
ExcelSaveType = BoldReports.Writer.ExcelVersion.Excel2013
};
You can save the report to the required CSV file extension by setting the FileExtension
property.
writer.CsvOptions = new BoldReports.Writer.CsvOptions()
{
FileExtension = ".txt"
};