I want to remove empty rows at the end of program exection. In details I am inserting some results after calculation using C# in predefined excel sheets. At the end I need to delete/remove the empty rows programatically. Could any one suggest solution. My code is little big so I am unable to include here. For your understanding I am giving some input and output view of excel. In below Output Excel the rows D and E having empty row I want to remove programatically without mentioning the range.
Input Excel /Pre defined Excel Files
A   1   2   3   4
B
C
D
E
output Excel
A   1   2   3   4
B   ABc cde nAC 123
C   cdf fed x2  123
D
E