Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have a requirement for an application that takes Doc, Docx content (means whole document) and converts them to RTF content.

I am trying but it does not convert document content to RTF content. But it just change the extension .doc/.docx to .rtf, not content of document.

share|improve this question

closed as not a real question by gnat, Wyatt Barnett, Jarrod Roberson, haylem, ChrisF Jun 30 '12 at 22:46

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
How exactly did you try to perform the conversion? What makes you think that the resulting .rtf document is the same as the original .Docx document? Did you run a compare between the input and output documents? –  Emmad Kareem Jun 30 '12 at 12:48
    
Do you have the Word COM object that you can reference? –  JeffO Jun 30 '12 at 13:14
    
Sounds like a SuperUser.com question (or some other SE site). Surprised this hasn't been closed yet. –  haylem Jun 30 '12 at 20:56
add comment

1 Answer

You can use Libre-Office in linux and Microsoft office in Windows. You have to save as the file in the extension that you want ie. RTF format.

OR

you can copy the contents of the file and then paste it in the rtf file which can be created by using notepad or wordpad.

share|improve this answer
    
i do this thing but only convert extension of file not content in file. –  Krunal Mevada Jun 30 '12 at 8:01
    
no it will not just change the extension but it will also change the main format of the whole document ..... try it once and you will know –  Pranit Bauva Jun 30 '12 at 8:03
    
you can try this thing.. –  Krunal Mevada Jun 30 '12 at 8:05
    
i try's this thing but not change format of document. –  Krunal Mevada Jun 30 '12 at 8:06
    
i have done it and it works properly ! –  Pranit Bauva Jun 30 '12 at 8:07
show 5 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.