Solved

OLE in Delphi without using the clipboard

Posted on 2004-08-23
6
489 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

13 Experts available now in Live!

Get 1:1 Help Now