Solved

Graphic in Rich text?

Posted on 1998-10-16
5
166 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

Industry Leaders: 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

Title # Comments Views Activity
How to renew a Delphi rad-studio licence? 5 76
drawing animated level bar based on numbers 3 111
creating threads in delphi 1 159
DBCtrlGrid, Delphi, Scroll 7 32
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

763 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