Page 1 of 1

Issue with pictures from docx in RVF

Posted: Wed Aug 21, 2013 12:37 pm
by Magy
Hi !

When I insert a docx document in a RichViewEdit I see all my document with the pictures.

Then I save it and load it with SaveRVF And LoadRVF method.

When I load it with rfvoIgnoreUnknownPicFmt = false in RVFOptions my text is cut after the first picture. If I turn this option to true I've all my text but no picture.

How can I get all my document with text and pictures ? Is there any options when I save or load I have to turn true ?

Thanks a lot ! :)

Posted: Wed Aug 21, 2013 5:34 pm
by Sergey Tkachenko
All graphic classes must be registered in order to be loaded from RVF.
TRichView already registers TBitmap, TMetafile, TIcon, TJpegImage.
New version of TRichView also registers TWicImage and TPngImage (in Delphi versions where they are available). But if you use older version of TRichView, you need to register them manually.
The only standard graphic format which is not registered is TGifImage.
Register it:
RegisterClass(TGifImage)

Posted: Thu Aug 22, 2013 7:06 am
by Magy
It solved it !

Thanks ! :D