By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,248 Members | 1,961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,248 IT Pros & Developers. It's quick & easy.

Convert Word file to txt file

P: n/a
How can i convert Word file to txt file in ASP.NET using CSharp?
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Ashutosh,

You might like to explore the option of using the Word
Automation model on the server to perform these conversions.
Other than doing a TLBIMP on the MSword typelibrary,
MS Office also ships with Primary Interop Assemblies (PIAs)
that will allow you to use the automation model from C#.

To convert from .doc to .txt, open the exisiting document using the
Word automation model (I assume something like
Application.Documents.Open() - you can refer the documentation
to get the correct method), and then call the Document.SaveAs()
method tosave the document in the desired format (.txt in your case)

Regards,
Aravind C
"Ashutosh" <an*******@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
How can i convert Word file to txt file in ASP.NET using CSharp?

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.