Click here to Skip to main content
15,886,788 members
Home / Discussions / C#
   

C#

 
GeneralRe: Feedback on this Tree class design? Pin
SledgeHammer015-Jan-12 6:45
SledgeHammer015-Jan-12 6:45 
GeneralRe: Feedback on this Tree class design? Pin
SledgeHammer015-Jan-12 10:11
SledgeHammer015-Jan-12 10:11 
AnswerRe: Feedback on this Tree class design? Pin
BillWoodruff5-Jan-12 17:28
professionalBillWoodruff5-Jan-12 17:28 
AnswerRe: Feedback on this Tree class design? Pin
RobCroll6-Jan-12 1:40
RobCroll6-Jan-12 1:40 
GeneralRe: Feedback on this Tree class design? Pin
BillWoodruff7-Jan-12 23:52
professionalBillWoodruff7-Jan-12 23:52 
QuestionNAudio Pin
Member 20880664-Jan-12 9:11
Member 20880664-Jan-12 9:11 
AnswerRe: NAudio Pin
RobCroll6-Jan-12 1:58
RobCroll6-Jan-12 1:58 
Questionhelp with code for convert from csv to excell Pin
goldsoft4-Jan-12 1:59
goldsoft4-Jan-12 1:59 
hi
i have this coed:







private void button2_Click(object sender, EventArgs e)

{

Excel.Application APexcel = null;

Excel.Workbook MyBook = null;

try

{

APexcel = new Microsoft.Office.Interop.Excel.Application();

APexcel.Visible = false;

string[] csvFile = File.ReadAllLines(@"d:\111.csv");

MyBook = APexcel.Workbooks.Add(Type.Missing);

Worksheet mySheet = (Worksheet)MyBook.ActiveSheet;

for (int i = 0; i < csvFile.Length; i++)

{

Range r = (Range)mySheet.get_Range(mySheet.Cells[i + 1, 1], mySheet.Cells[i + 1, csvFile[i].Split(',').Length]);

((Style)r.Style).NumberFormat = "@";

r.Value2 = csvFile[i].Split(',');

}

MyBook.SaveAs("d:\\MyExcelFile.xls", Excel.XlFileFormat.xlWorkbookNormal, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Excel.XlSaveAsAccessMode.xlShared, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

MyBook.Close(Type.Missing, Type.Missing, Type.Missing);

MessageBox.Show("OK");

}

catch (Exception ex)

{

throw ex;

}

}

its work excellent but where there is hebrew letters i see gibberish
AnswerRe: help with code for convert from csv to excell Pin
Dave Kreskowiak4-Jan-12 3:22
mveDave Kreskowiak4-Jan-12 3:22 
GeneralRe: help with code for convert from csv to excell Pin
goldsoft4-Jan-12 4:09
goldsoft4-Jan-12 4:09 
GeneralRe: help with code for convert from csv to excell PinPopular
Dave Kreskowiak4-Jan-12 4:42
mveDave Kreskowiak4-Jan-12 4:42 
GeneralRe: help with code for convert from csv to excell Pin
jschell4-Jan-12 8:19
jschell4-Jan-12 8:19 
GeneralRe: help with code for convert from csv to excell Pin
Dave Kreskowiak4-Jan-12 9:17
mveDave Kreskowiak4-Jan-12 9:17 
GeneralRe: help with code for convert from csv to excell Pin
jschell6-Jan-12 8:36
jschell6-Jan-12 8:36 
GeneralRe: help with code for convert from csv to excell Pin
fjdiewornncalwe4-Jan-12 9:19
professionalfjdiewornncalwe4-Jan-12 9:19 
GeneralRe: help with code for convert from csv to excell Pin
jschell6-Jan-12 8:37
jschell6-Jan-12 8:37 
Questioncalling ShowDialog() Pin
MahaKh4-Jan-12 1:10
MahaKh4-Jan-12 1:10 
AnswerRe: calling ShowDialog() Pin
Pete O'Hanlon4-Jan-12 1:32
mvePete O'Hanlon4-Jan-12 1:32 
GeneralRe: calling ShowDialog() Pin
MahaKh4-Jan-12 2:26
MahaKh4-Jan-12 2:26 
GeneralRe: calling ShowDialog() Pin
Pete O'Hanlon4-Jan-12 3:11
mvePete O'Hanlon4-Jan-12 3:11 
AnswerRe: calling ShowDialog() Pin
OriginalGriff4-Jan-12 1:34
mveOriginalGriff4-Jan-12 1:34 
QuestionHow to drawing text that can rotate in Tao.OpenGL Pin
derek09193-Jan-12 22:24
derek09193-Jan-12 22:24 
AnswerRe: How to drawing text that can rotate in Tao.OpenGL Pin
Luc Pattyn4-Jan-12 2:07
sitebuilderLuc Pattyn4-Jan-12 2:07 
QuestionGet Windows Icons For Devices Pin
Kevin Marois3-Jan-12 13:05
professionalKevin Marois3-Jan-12 13:05 
AnswerRe: Get Windows Icons For Devices Pin
Richard Andrew x643-Jan-12 16:46
professionalRichard Andrew x643-Jan-12 16:46 

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.