Page 1 of 1

Problem about paste image

Posted: Fri Jun 07, 2019 2:37 am
by wolf1860
TRichViewEdit works with TDxRichEditControl(Devexpress vcl): TDxRichEditControl open an docx file,I copied an image to the clipboard which displayed in the TdxRichEditControl,and I can paste it to the word,the writing board(windows 10),but I can not paste it to the TRichViewEdit(Ctrl+V/Standard RVAction),TRichViewEdit displayed nothing. When I pasted the image to the writing board,I select the image in the writing board,press Ctrl+C,return back to the TRichViewEdit,Ctrl+V,It worked! Any idea? Thank u!

Re: Problem about paste image

Posted: Mon Jun 10, 2019 11:49 pm
by wolf1860
I have posted the test docx file to ur gmail.Thanks again:)

Re: Problem about paste image

Posted: Wed Jun 12, 2019 6:46 pm
by Sergey Tkachenko
After copying an image from dxRichEditControl, the only format available in the Clipboard is RTF.
So this editor copies a document fragment containing the image as RTF, including its alignment option.
Unfortunately, as I can see, dxRichEditControl supports only floating images, while our editor supports only non-floating images. It ignores floated images in RTF.
So, unfortunately, I do not know how to paste images from dxRichEditControl to TRichViewEdit.
There is no problem copying images from MS Word to RichViewEdit, because MS Word also provides images in different formats that can be pasted by RichViewEdit.
In future, we plan to support floating images, but not soon, sorry.

Re: Problem about paste image

Posted: Thu Jun 13, 2019 12:16 am
by wolf1860
Thank u!
I found the image which copied from web to tdxRicheditControl can be pasted to TRichViewEdit,the difference is floating and non-floating?
Look,I Just want to paste the image from the clipboard,and I don't care its alignment options,Can u give me some suggestions? This is very very important for me ,I need analyze and import word document content.

Re: Problem about paste image

Posted: Thu Jun 13, 2019 1:10 am
by wolf1860
And I noticed when TRichViewEdit open the rtf file which is saved by TDxRichEditControl,The TRichViewEdit convert the floating images to non floating images,May I do this action when paste floating image?

Re: Problem about paste image

Posted: Thu Jun 13, 2019 9:04 am
by Sergey Tkachenko
If TRichView can read these images, they were saved differently.
Actually, it is not too difficult to read floating pictures as non-floating, may be it will be implemented before the complete implementation of floating images. However, at this time we have work with higher priority, sorry.