Jun 17, 2003 #1 Zech Programmer Oct 14, 2002 116 US Hi, I am wondering whether there is an OLE object or API that I can use to read and display rtf format. Thanks.
Hi, I am wondering whether there is an OLE object or API that I can use to read and display rtf format. Thanks.
Jun 17, 2003 1 #2 AirCon IS-IT--Management Apr 5, 2003 860 ID 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 ) http://msdn.microsoft.com/library/d...atform/commctls/RichEdit/RichEditControls.asp Hope that helps -- AirCon -- Upvote 0 Downvote
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 ) http://msdn.microsoft.com/library/d...atform/commctls/RichEdit/RichEditControls.asp Hope that helps -- AirCon --
Jun 17, 2003 Thread starter #3 Zech Programmer Oct 14, 2002 116 US Thanks. It helps! ^^ Upvote 0 Downvote
Jun 24, 2003 Thread starter #4 Zech Programmer Oct 14, 2002 116 US 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! ^^ Upvote 0 Downvote
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! ^^
Jun 25, 2003 #5 GraphicEqualiser Programmer Dec 10, 2002 6 GB 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 http://download.microsoft.com/download/6/b/3/6b34f4c7-44e6-4d85-91d9-1acf9479da7d/orktools.exe and use instructions at http://home.att.net/~robertdunn/FAQs/RE30New.html#Where to get it to install it) then have a look at some code samples (again on Robert Dunn's brilliant site) at http://home.att.net/~robertdunn/CodeSamples/RE30CodeSamples.html . You will need to use OLE to embed images, so download and look at the code samples in http://home.att.net/~robertdunn/CodeSamples/RichEditOle.zip Good luck Upvote 0 Downvote
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 http://download.microsoft.com/download/6/b/3/6b34f4c7-44e6-4d85-91d9-1acf9479da7d/orktools.exe and use instructions at http://home.att.net/~robertdunn/FAQs/RE30New.html#Where to get it to install it) then have a look at some code samples (again on Robert Dunn's brilliant site) at http://home.att.net/~robertdunn/CodeSamples/RE30CodeSamples.html . You will need to use OLE to embed images, so download and look at the code samples in http://home.att.net/~robertdunn/CodeSamples/RichEditOle.zip Good luck
Jun 25, 2003 #6 AirCon IS-IT--Management Apr 5, 2003 860 ID Here is another examples. I haven't look into the source code, but hope it helps http://www.codeproject.com/richedit/autoricheditctrl.asphttp://www.codeproject.com/richedit/CRichEditCtrlGS.asp Good luck -- AirCon -- Upvote 0 Downvote
Here is another examples. I haven't look into the source code, but hope it helps http://www.codeproject.com/richedit/autoricheditctrl.asphttp://www.codeproject.com/richedit/CRichEditCtrlGS.asp Good luck -- AirCon --