public void dispose() { if (Excel != null) { Excel.Dispose(); } if (WorkSheet != null) { WorkSheet.Dispose(); } }