Hi all!
I want change my excel file and remove from them all existing empty rows before my data.
Example: I have before
I want to have after:
I don't know how I can fast modify my files in Open XML 2.5.
But I found solution for Microsoft.Office.Interop.Excel:
//Create a new Workbook. //Open an existing excel file. Workbook wb = new Workbook(@"d:\test\book1.xls"); //Create a Worksheets object with reference to //the sheets of the Workbook. WorksheetCollection sheets = wb.Worksheets; //Get first Worksheet from WorksheetCollection Worksheet sheet = sheets[0]; //Delete the Blank Rows from the worksheet sheet.Cells.DeleteBlankRows();
But I must't use excel app on server side...
Help me please)