471,338 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

How do I use C# to take a .XLS Excel file and make it .TXT Tab-Delimited file?

Hi all,

I am trying to convert the first worksheet in an Excel file to a
tab-delimited .TXT file. How do I do that?

- Sean

Aug 9 '05 #1
3 4036
Hi Seen,
Why don't you just use/invoke Save As with Text (Tab delimited) Save As Type?
How are you trying to do it?
What is your client application?
--
Leon Langleyben
MCSD
http://dotnetjunkies.com/WebLog/leon/
"Sean Bergam" wrote:
Hi all,

I am trying to convert the first worksheet in an Excel file to a
tab-delimited .TXT file. How do I do that?

- Sean

Aug 9 '05 #2
I guess because I don't know how to do that with C#. I said that in
the subject of my post. Is that possible?

Aug 9 '05 #3
Yes, it is possible. What Office version do you using? Do you working with
VSTO or simple COM interface?

Method you are looking for is Workbook.SaveAs with parameter FileFormat=xlText
--
Leon Langleyben
MCSD
http://dotnetjunkies.com/WebLog/leon/
"Sean Bergam" wrote:
I guess because I don't know how to do that with C#. I said that in
the subject of my post. Is that possible?

Aug 9 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Allison Bailey | last post: by
reply views Thread by Prasad Patil | last post: by
2 posts views Thread by Tony Williams | last post: by
3 posts views Thread by | last post: by
2 posts views Thread by Abdhul Saleem | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.