Click here to Skip to main content
14,881,563 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:32
mveBillWoodruff16-Sep-19 4:32 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 4:30
mveBillWoodruff16-Sep-19 4:30 
AnswerRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 16:20
MemberBrian_TheLion16-Sep-19 16:20 
GeneralRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 16:36
mveBillWoodruff16-Sep-19 16:36 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion16-Sep-19 20:40
MemberBrian_TheLion16-Sep-19 20:40 
AnswerRe: Using buttons on a form. Pin
BillWoodruff16-Sep-19 22:49
mveBillWoodruff16-Sep-19 22:49 
GeneralRe: Using buttons on a form. Pin
Brian_TheLion17-Sep-19 20:03
MemberBrian_TheLion17-Sep-19 20:03 
QuestionFile format not proper for excel mail attachment in c# Pin
Member 1225501213-Sep-19 8:33
MemberMember 1225501213-Sep-19 8:33 
I'm sending an email with attachment generating from the code below:

private const string CsvContentType = "application/ms-excel";
.....
.....
mem.Seek(0, SeekOrigin.Begin);
Attachment attach = new Attachment(mem, "Testing.xls");
attach.ContentType = new System.Net.Mime.ContentType(CsvContentType);
mailMsg.Attachments.Add(attach);


where mem is a Stream object

I'm able to send the mail with the attachment but it is of not proper format. For example see the example below:

StudId;Name;Age;….
1;Anna;14;....
2;Emma;14;....
3;Tina;14;....


Can some one help with it?
AnswerRe: File format not proper for excel mail attachment in c# Pin
MadMyche13-Sep-19 11:59
mveMadMyche13-Sep-19 11:59 
QuestionHow to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 6:46
MemberMember 1457084312-Sep-19 6:46 
AnswerRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 6:49
mveRichard MacCutchan12-Sep-19 6:49 
GeneralRe: How to get the Websocketdata from server? Pin
Member 1457084312-Sep-19 7:14
MemberMember 1457084312-Sep-19 7:14 
GeneralRe: How to get the Websocketdata from server? Pin
Richard MacCutchan12-Sep-19 11:15
mveRichard MacCutchan12-Sep-19 11:15 
AnswerRe: How to get the Websocketdata from server? Pin
ZurdoDev12-Sep-19 9:48
professionalZurdoDev12-Sep-19 9:48 
AnswerRe: How to get the Websocketdata from server? Pin
Gerry Schmitz12-Sep-19 20:36
mveGerry Schmitz12-Sep-19 20:36 
AnswerRe: How to get the Websocketdata from server? Pin
OriginalGriff13-Sep-19 0:25
mveOriginalGriff13-Sep-19 0:25 
QuestionWPF or Winforms Pin
N.Subramanian12-Sep-19 0:12
MemberN.Subramanian12-Sep-19 0:12 
AnswerRe: WPF or Winforms Pin
OriginalGriff12-Sep-19 0:15
mveOriginalGriff12-Sep-19 0:15 
AnswerRe: WPF or Winforms Pin
Richard MacCutchan12-Sep-19 3:18
mveRichard MacCutchan12-Sep-19 3:18 
AnswerRe: WPF or Winforms Pin
Gerry Schmitz12-Sep-19 6:13
mveGerry Schmitz12-Sep-19 6:13 
GeneralRe: WPF or Winforms Pin
Eddy Vluggen12-Sep-19 23:21
professionalEddy Vluggen12-Sep-19 23:21 
GeneralRe: WPF or Winforms Pin
Gerry Schmitz13-Sep-19 11:15
mveGerry Schmitz13-Sep-19 11:15 
GeneralRe: WPF or Winforms Pin
Eddy Vluggen13-Sep-19 12:19
professionalEddy Vluggen13-Sep-19 12:19 
GeneralRe: WPF or Winforms Pin
Gerry Schmitz14-Sep-19 5:12
mveGerry Schmitz14-Sep-19 5:12 
AnswerRe: WPF or Winforms Pin
Mycroft Holmes12-Sep-19 13:02
professionalMycroft Holmes12-Sep-19 13:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.