Hi, I am writing a wrapper for excel interop, I want to open the csv file in excel and show it to the user. I have the basics, but when I set the visible value to true and excel appears, all the columns are clamped in the first and the separating commas are displayed.
here is my assistant.
public MyExcel(string filePath, bool readOnly) { _app = new Excel.Application(); _workbooks = _app.Workbooks; _workbook = _workbooks.Open(_filepath, 0, _readOnly, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", !_readOnly, false, 0, true, true, true); } public void Show() { _app.Visible = true; }
any suggestions?
When I open the file with a double click, Excel handles everything correctly.
source share