Solved

Richedit and Doc Files

Posted on 1999-01-29
3
521 Views
Last Modified: 2013-11-22
How can I open a MS Word Doc file in a richedit box.
I can do this with *.txt and *.rtf but not *.doc.
0
Comment
Question by:frw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 1363851
Hi FRW,

Indeed, if you want to open a .doc file you have to read in the format of a .doc file. I don't think this is what you want or if you're up to the task look into the DOP(Document Properties) and FIB(File Information Block) structures MS provide at their site.

RTF is a specific format as is TXT these are both supported by the RichEdit control and Word.
So that leaves you with those formats left to open a Word
document in a standard RichEdit control.
Don't know yet about the RichEdit20.ocx provided with IE4.01 etc. maybe there's a opening?
But why should MS do that, cannibalize their own money making scheme (sorry....).

Good lucK.
:O)
0
 
LVL 7

Accepted Solution

by:
BlackMan earned 100 total points
ID: 1363852
Surf to this website: http://paul.balpol.tudelft.nl/delphi/converters

There's a Delphi component that encapsulate the Word converters, so that you can read a DOC file and convert it to RFT for the RichEdit control.

This site is very unstable, if you can't get trhu, give me your e-mail addr. and I'll e-mail it to you..
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1363853
I just found the archive here too: http://sunsite.icm.edu.pl/delphi/ftp/d30free/msconv.zip
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question