private void BtnExportExcel_Click(object sender, EventArgs e) { //Get save file location of the excel file string fileLoc = exl.GetSavePath(ref txtCriteria, ref cboFilter); txtLogs.AppendText($"Save file location is set.{ NewLine }"); //Create an empty excel file exl.CreateExcelFile(fileLoc); txtLogs.AppendText($"Done creating excel file.{ NewLine }"); //Export all data to excel file exl.ExportEntriesToExcel(fileLoc, entries, bc, oi, a, ma, cd); txtLogs.AppendText($"Fill excel file with property data.{ NewLine }"); txtLogs.AppendText($"Excel file is now ready.{ NewLine }"); Console.WriteLine(); }