Microsoft.Office.Interop.Excel.
{
xlApp =
xlWorkBook = xlApp.Workbooks.Open
(
xlWorkSheet = (Microsoft.Office.Interop.Excel.
range = xlWorkSheet.UsedRange;
range.SpecialCells(
startRow = xlApp.ActiveCell.Row + 1;
xlWorkSheet.Cells[startRow, 3] = strDate;
xlWorkSheet.Cells[startRow, 4] = strOrder;
xlWorkSheet.Cells[startRow, 5] = strState;
xlWorkSheet.Cells[startRow, 6] = strCounty;
xlWorkSheet.Cells[startRow, 7] = strBorrower;
xlWorkSheet.Cells[startRow, 8] = strOrderType;
xlApp.Save(xlWorkBook);
xlWorkBook.Close(
releaseObject(range);
releaseObject(xlWorkSheet);
releaseObject(xlWorkBook);
xlApp.Quit();
releaseObject(xlApp);
}