export data

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Is there a way to read an excel spreadsheet and export the data from the excel doc to word or a text file?

example, if I only want columns A, B, and C, and export that data into a word doc, how could that be done?
 
Steve,

To do this, you should use the Excel and Word automation models to open
an instance of Excel, read the data, and then write the data to a Word
document in the format you want.

If you are using Office 2007, then you should be able to use the classes
in the System.IO.Packaging namespace (in .NET 3.0) to open the Excel
document with an XML parser and then transform it into a new word document
without opening Excel or Word at all.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Is there a way to read an excel spreadsheet and export the data from the
excel doc to word or a text file?

example, if I only want columns A, B, and C, and export that data into a
word doc, how could that be done?
 
Back
Top