Hello, I had an application that used the excel interop, but I have changed it and now, to create the excels I use telerik, but some of my clients that use Excel 2003 have problems to open the excel created, they appear rare characters. Any ideas please? My code is something like that
string
nombre= ruta +
"\\excel.xls"
;
Workbook workbook =
new
Workbook();
workbook.Sheets.Add(SheetType.Worksheet);
Worksheet xlsSheet = xlsBook.ActiveWorksheet;
xlsSheet.Cells[1, 1].SetValue(
"prueba"
);
...
...
//Guardamos y abrimos la excel.
IWorkbookFormatProvider formatProvider = WorkbookFormatProvidersManager.GetProviderByName(
"XlsxFormatProvider"
);
using
(Stream output =
new
FileStream(nombre, FileMode.Create))
{
formatProvider.Export(workbook, output);
}
Thank you!