Issue with pictures from docx in RVF

General TRichView support forum. Please post your questions here
Post Reply
Magy
Posts: 2
Joined: Wed Aug 21, 2013 12:27 pm

Issue with pictures from docx in RVF

Post 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 ! :)
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Magy
Posts: 2
Joined: Wed Aug 21, 2013 12:27 pm

Post by Magy »

It solved it !

Thanks ! :D
Post Reply