Solved

OLE in Delphi without using the clipboard

Posted on 2004-08-23
6
498 Views
Last Modified: 2012-05-05
In my last question asked here I ask how to put pictures in a Richedit control. I found the solution in the form of a zip
file MyRicheditEx I don't remember exactly where.  The solution worked.  However the sample code give uses the clipboard to insert picture.  The following code insets the picture. I would like to know how to do this with using the clipboard.


procedure insertbmp(MyRich: TRichedit; bmpname: string);
 var
   pict: Tpicture;
begin

   Pict := TPicture.Create;
   Pict.LoadFromFile(bmpname);
   Clipboard.Assign(Pict);
   MyRich.PasteFromClipboard;
end;

I found some code on this board to back up and restore the clipboard but I would perfer not to use the cliboard at all.
0
Comment
Question by:WilliamHarter
[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
6 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 500 total points
ID: 11883222
Maybe check out http://www.trichview.com/ to save development time... Includes full source for only $189,-

http://www.torry.net/vcl/edits/rich/richedit98.zip might be useful too, for a free component.

Keep in mind that the TRichEdit is just a wrapper around a Microsoft control. Therefore, the default Delphi code will have a few limitations...
0
 
LVL 4

Expert Comment

by:Delphian
ID: 13080516
And the best (and expensive)  richtext controls are just the ones
that reimplement the RTF standard from scratch.
But I got that standard one time: it's about 31 A4
pages on pdf.... And font Arial 10pt.... I just deleted
and forgot the subject.


0
 
LVL 4

Expert Comment

by:Delphian
ID: 13343016
Give the points to Alex.... I did just a complimentary comment.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month4 days, 5 hours left to enroll

630 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