private void ConvertExcelToText(AttachmentUnit unit, IProgress <EstimatorBaseProgress> progress) { ProgressLogTask(progress, "Convert a Excel file to a text file"); WaitTask(); var newpath = _excelService.ConvertToWordDocument(unit.PhisicalName); unit.PhisicalName = newpath; unit.CurrentType = FileType.Docx; }