Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
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 
GeneralInteger Question Pin
jchigg20009-Apr-08 3:53
jchigg20009-Apr-08 3:53 
GeneralRe: Integer Question Pin
Colin Angus Mackay9-Apr-08 3:57
Colin Angus Mackay9-Apr-08 3:57 
GeneralRe: Integer Question Pin
jchigg20009-Apr-08 3:58
jchigg20009-Apr-08 3:58 
GeneralRe: Integer Question Pin
PIEBALDconsult9-Apr-08 13:25
mvePIEBALDconsult9-Apr-08 13:25 
GeneralRe: Integer Question Pin
Dave Kreskowiak9-Apr-08 7:02
mveDave Kreskowiak9-Apr-08 7: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.