Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1750
problem importing excel in a pivotgrid
posted

 

I get a "wrong code page" error trying to import an excel document.

...........

            ExcelDataConnectionSettings excelDataSettings = new ExcelDataConnectionSettings { FileStream = fileStream, GeneratedTypeName = PivotGridStrings.XPG_ExcelFileDataSource_InitialCube, WorksheetName = PivotGridStrings.XPG_ExcelFileDataSource_WorksheetName };
            ExcelDataConnectionSettings.AddExcelCellFormatMapping(PivotGridStrings.XPG_ExcelFileDataSource_ExcelFormatSrc, PivotGridStrings.XPG_ExcelFileDataSource_ExcelFormatDest);
            ExcelDataConnectionSettings.AddExcelDateTimeCellFormatMapping("d/m/yy;@""M/d/yy");
            flatDataSource.Cube = DataSourceBase.GenerateInitialCube(PivotGridStrings.XPG_ExcelFileDataSource_InitialCube);
..........
Can I do something in my C# code so I will be able to import any Excel documents without problem ?

 

Parents Reply Children