Hello RichView Support,
I’m encountering an issue with an image embedded in a RichEdit control using RichView.
I’ve attached an RVF file that demonstrates the problem. When copying the image from this document, it cannot be pasted into applications like Paint. Additionally, the available paste options differ compared to images in other documents.
The image in question appears to be stored in Rich Text Format and RichView Format, whereas other images typically use Bitmap format.
This Picture:
Other Pictures:
This behavior can also be reproduced in the RichView demo application (“RichViewActions” test). Simply load the attached RVF file and try copying the image.
Do you have any insights into why this is happening or how it can be resolved?
Thank you in advance for your help.
Best regards,
Tom
Issue with Copying Images from RichView (RVF)
Re: Issue with Copying Images from RichView (RVF)
My guess is this may be by design. You can put something like this in your copy code or action. It's what I use:
Stan (not with rv support)
Code: Select all
var
gr: TGraphic;
ATag: TRVTag;
RVAlign: TRVVAlign;
s: TRVUnicodeString;
AData: THandle;
APalette: HPALETTE;
begin
if (rv.GetSelectedImage <> nil) then
begin
rv.GetCurrentPictureInfo( s, gr, RVAlign, ATag );
if gr <> nil then
begin
//ShowMessage( 'x ' + gr.ClassName); //debug
Clipboard.Open;
gr.SaveToClipboardFormat(CF_PICTURE,AData,APalette);
ClipBoard.SetAsHandle(CF_PICTURE,AData);
Clipboard.Close;
end
else
if not rv.CopyDef then
begin
ShowMessage('Unable to copy data.');
end;
end;
end;Re: Issue with Copying Images from RichView (RVF)
Hi Stan,
Thanks for the help. It is working fine.
Thanks for the help. It is working fine.