and it doesn't appear that anyone's done it in Delphi. If you can have the user save his file in .rtf format from MS-Word then it should go into a TRichEdit.
Here is some simple code to try. This is accessing MS Word through OLE. You might have to refer to the MSDN Library (if you have access to it) or try the Microsoft Website for more help on the MS Office objects and properties that are available.
uses ComObj;
var
MSWord : OLEVariant;
begin
MSWord := CreateOLEObject('Word.Basic');
MSWord.FileOpen('c:\sample.doc');
MSWord.Print;
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.