Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RTF reader 1

Status
Not open for further replies.

Zech

Programmer
Oct 14, 2002
116
0
0
US
Hi,

I am wondering whether there is an OLE object or API that I can use to read and display rtf format. Thanks.
 
Both are exist.

An ActiveX for RTF is called "Microsoft Rich Textbox Control". The OLEClass name is "RICHTEXT.RichtextCtrl"

For RTF API programming, look here:
(bunch of "SendMessage" API with "EM_..." for message parameter :) )


Hope that helps

-- AirCon --
 
Uh oh ... I got another problem now. My rich edit control can't display pictures embedded in an RTF document.

Any idea how to do this?

Thanks! ^^
 
To use pictures in your apps in RTF, you must have riched20.dll on your PC ( you can get the latest version of it at and use instructions at to install it) then have a look at some code samples (again on Robert Dunn's brilliant site) at . You will need to use OLE to embed images, so download and look at the code samples in
Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top