I have C# code. Is it possible to export the DataGridView
to an Excel file and send it by e-mail without saving the Excel file?
mail sending function with attachment and for that I need file location
Attachment attachment = new Attachment(labelLocation.Text);
mail.Attachments.Add(attachment);