473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 4106
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
0
by: Prasad Patil | last post by:
Hi, I have a asp.net/c# web application when i try to create the following excel object using the following code mentioned below I have Office 2003 installed on my PC, VS.Net 2003. but still it...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
2
by: Tony Williams | last post by:
Is it possible to import a spreadsheet from Excel where the rows contain the field names rather than the columns? I'm creating an Excel spreadsheet but there are over 50 items to import and would...
9
by: Nathan | last post by:
A couple of months ago, I went looking for a .NET grid component with what I thought was pretty simple criteria - I wanted an interface that provided my users with Excel-like data entry capability....
3
by: | last post by:
Hello, I have a routine in my Windows application that exports the contents of a datagrid to Excel. It is modeled closely after the HowTo example on MSDN: http://tinyurl.com/5g2jm. Depending...
0
by: Bon | last post by:
Hello all I need to paste two pie charts in the MS Access 2000 Form. Actually, it is one of the Form in Tab folder. This is used to give customers a quick visual summary of how many do they buy...
2
by: Abdhul Saleem | last post by:
Hi, How to set text style for an excel cell progrmattically, which is equavalant to Excel->Format Cells->Number Tab->Text Regards, M. Abdhul Saleem.
1
by: mplsken | last post by:
I looked around for the right discussion thread to post this to, and apologize if this is the wrong one ... feel free to redirect me - I'm new to this board! I've seen several references in other...
2
by: Dhananjay | last post by:
Hi all , I have got problem when i am tring to exportGridview Data into Excel format. It is going into text format ,but what i want is if the field is number/currency then it should go into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.