Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: What could cause a Dispatcher Thread to terminate abnormally? Pin
carbon_golem10-Apr-08 2:19
carbon_golem10-Apr-08 2:19 
QuestionNHibernate?? Pin
jchigg20009-Apr-08 7:22
jchigg20009-Apr-08 7:22 
AnswerRe: NHibernate?? Pin
led mike9-Apr-08 7:30
led mike9-Apr-08 7:30 
AnswerRe: NHibernate?? [modified] Pin
Roger Alsing9-Apr-08 9:58
Roger Alsing9-Apr-08 9:58 
AnswerRe: NHibernate?? Pin
Mark Churchill9-Apr-08 21:16
Mark Churchill9-Apr-08 21:16 
AnswerRe: NHibernate?? Pin
Yitzchok Dev13-Apr-08 15:08
Yitzchok Dev13-Apr-08 15:08 
GeneralTrying to found the right control for a project Pin
HarrisonBrock9-Apr-08 6:26
HarrisonBrock9-Apr-08 6:26 
GeneralRe: Trying to found the right control for a project Pin
carbon_golem9-Apr-08 6:43
carbon_golem9-Apr-08 6:43 
GeneralByte array into Excel using C#. Pin
kurangu9-Apr-08 4:34
kurangu9-Apr-08 4:34 
GeneralRe: Byte array into Excel using C#. Pin
led mike9-Apr-08 4:40
led mike9-Apr-08 4:40 
GeneralRe: Byte array into Excel using C#. Pin
kurangu9-Apr-08 5:29
kurangu9-Apr-08 5:29 
GeneralRe: Byte array into Excel using C#. Pin
led mike9-Apr-08 5:50
led mike9-Apr-08 5:50 
GeneralRe: Byte array into Excel using C#. Pin
kurangu9-Apr-08 5:59
kurangu9-Apr-08 5:59 
string sfilename = @"C:\\\\test.xls";
FileStream fs = new FileStream(sfilename, FileMode.Create);
xlw.Save(wb, fs);

byte[] binFile = new byte[fs.Length];
fs.Read(binFile, 0, (int)fs.Length);
fs.Close();

return binfile.

Mike the above code returns the byte(right now I am saving the excel file with test.xls in server)
after that i am getting the byte.

client coe:-
-----

byte[]test=webservice.getdata();

FileStream output = new FileStream("C:\\test2.xls", FileMode.Create,FileAccess.Write);
output.Write(test, 0, test.Length);
output.Close();

Test 2 created with the same size as test in server but when i open I am geeting format not good.with empty xls.
GeneralRe: Byte array into Excel using C#. Pin
KaptinKrunch9-Apr-08 7:11
KaptinKrunch9-Apr-08 7:11 
GeneralRe: Byte array into Excel using C#. Pin
Anthony Mushrow9-Apr-08 7:19
professionalAnthony Mushrow9-Apr-08 7:19 
GeneralRe: Byte array into Excel using C#. Pin
Anthony Mushrow9-Apr-08 7:16
professionalAnthony Mushrow9-Apr-08 7:16 
QuestionAdd files to a Msi installer Pin
Radu_209-Apr-08 4:18
Radu_209-Apr-08 4:18 
GeneralRe: Add files to a Msi installer Pin
led mike9-Apr-08 4:42
led mike9-Apr-08 4:42 
GeneralGetting Files LastWriteTime Pin
narayanagvs9-Apr-08 3:59
narayanagvs9-Apr-08 3:59 
GeneralRe: Getting Files LastWriteTime Pin
Abhijit Jana9-Apr-08 4:52
professionalAbhijit Jana9-Apr-08 4:52 
GeneralRe: Getting Files LastWriteTime Pin
narayanagvs9-Apr-08 5:49
narayanagvs9-Apr-08 5:49 
GeneralRe: Getting Files LastWriteTime Pin
Luc Pattyn9-Apr-08 6:32
sitebuilderLuc Pattyn9-Apr-08 6:32 
GeneralRe: Getting Files LastWriteTime Pin
Dave Kreskowiak9-Apr-08 7:05
mveDave Kreskowiak9-Apr-08 7:05 
GeneralInterop c# and cpp unmanaged [modified] Pin
Tomerland9-Apr-08 3:56
Tomerland9-Apr-08 3:56 
GeneralRe: Interop c# and cpp unmanaged Pin
led mike9-Apr-08 4:45
led mike9-Apr-08 4:45 

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.