Sign in to follow this  
Zmurf

Converting DOC to RTF in C#

Recommended Posts

Zmurf    100
Is there any way to convert a DOC file into a RTF file in C# so it can be manipulated in a Rich Text Box control? I can't use the Microsoft Word library because this computer didn't come with Office, it came with Microsoft Works. Also I want to be able to use this application most XP computers so I don't particularly want to use a library like that anyways.

Share this post


Link to post
Share on other sites
Xai    1848
There is no standard / free solution to do this (as far as I know). I believe there are components to do this, but they cost money.

I know that at our company, the customer had DOC files with bookmarks our app needed to process and we just decided it was easier to change the files to RTF using Office 1 time (and get the customer to submit future files in RTF format). You of course may not have this option.

Share this post


Link to post
Share on other sites
Xai    1848
Quote:
Original post by rfterdarc
try downloading the MS Office SDK, perhaps theres a some functions associated with Word, like OpenDocument, SaveDocument( format )


I think this post may be right, but if I remember correctly the code in the Office SDK uses the Office components at runtime and therefore the program you create can only work on machines with office installed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this