Solved

Graphic in Rich text?

Posted on 1998-10-16
5
168 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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