Solved

Graphic in Rich text?

Posted on 1998-10-16
5
159 Views
Last Modified: 2010-04-06
I am trying to load a rtf file containing a graphic into a richedit. It will load only the lines, but i do not know how to load the graphics?
0
Comment
Question by:zonk
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1343138
zonk,

this is not possible, because the Trichedit is a descendant of the windows richedit, which doesn't has these capabilities...

Just test it by pasting a wordpad text with image to your richedit... text will be displayed, but image not!

Go to this page and download this freeware component

TRichEditWithOle

find sources etc at his homepage http://wet.kiss.uni-lj.si/~k4fe0106/

also, look at this thread ...

http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10077554

Regards, Zif.
0
 
LVL 2

Expert Comment

by:Thaddy
ID: 1343139
Ziffnab is not completely Right. The control itself has a couple of com extensions that are not implemented in the VCL (Omission from borland/inprise).
(But you can still do the trick)
Yes, this IS possible, even easy, with a little trickery.

You need to implement just two -documented- COM interfaces
-IRichEditOleCallback
-IRichEditOle
I found them a couple of years ago in MS C++ headerfiles.
RichOle.h.
I'll send you an answer if you want. It works great!
The code is a simplified version of something I found on the web,
I simplified it for an SDGN session by me last September.

0
 
LVL 2

Expert Comment

by:Thaddy
ID: 1343140
Ziffnab is not completely Right. The control itself has a couple of com extensions that are not implemented in the VCL (Omission from borland/inprise).
(But you can still do the trick)
Yes, this IS possible, even easy, with a little trickery.

You need to implement just two -documented- COM interfaces
-IRichEditOleCallback
-IRichEditOle
I found them a couple of years ago in MS C++ headerfiles.
RichOle.h.
I'll send you an answer if you want. It works great!
The code is a simplified version of something I found on the web,
I simplified it for an SDGN session by me last September.

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343141
Hi Thaddy, correct, that's why I gave the link to the component, which implements them. Zif.
0
 

Author Comment

by:zonk
ID: 1343142
SO the two solutions are identical?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now