PC Review


Reply
Thread Tools Rate Thread

Converting Excel workbook to and from string

 
 
Axel
Guest
Posts: n/a
 
      5th Jan 2005
Nicholas, thanks for your help. According to your thought I assume
this would work as an example but it does not, the test2.xls file can
still not be opened:

FileStream fileStream = new FileStream("c:/temp/test.xls",
FileMode.Open);
StreamReader reader = new StreamReader(fileStream);

FileStream fileStream2 = new FileStream("c:/temp/test2.xls",
FileMode.Create, FileAccess.Write);
StreamWriter writer = new StreamWriter(fileStream2);
writer.BaseStream.Seek(0, SeekOrigin.End);
writer.WriteLine(reader.ReadToEnd());
writer.Flush();

I am aware my answer creates a new thread, seems to be something wrong
with the "post-a-reply" link...
/Axel
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting workbook to run on German excel Fan924 Microsoft Excel Programming 6 13th Nov 2009 12:40 AM
Excel export is converting string to number JimP Microsoft Access VBA Modules 1 12th Oct 2007 04:20 PM
converting a string of information into excel cells =?Utf-8?B?SC5XLg==?= Microsoft Excel Worksheet Functions 5 18th Apr 2006 07:01 PM
Converting Excel workbook to and from string Axel Microsoft C# .NET 1 4th Jan 2005 02:46 PM
Converting an Excel workbook to PDF Sketcher Microsoft Excel Discussion 1 4th May 2004 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 AM.