trichview.com

trichview.support.thirdparty




Re: about rvhtmlimport


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/15/2004 16:48:39


First, make sure that you use the latest version of RvHtmlImporter - 0.0017.

It loads local files itself.


If they are not loaded, two reasons are possible:

1) There are no graphic classes representing this graphic format

2) Images are on remote internet server and must be downloaded before

inserting in document.


Solutions:

1) Delphi has graphic classes for displaying bitmaps, metafiles, icons and

jpegs.

There are no standard classes for gifs anf pngs. You need to use third-party

classes.

For example:

  GifImage (by Anders Melander)

    http://www.torry.net/vcl/graphics/gif/gifimage.exe (original)

    http://www.trichview.com/resources/thirdparty/gifimage.zip (update)

  PngObject (by Gustavo Huffenbacher Daud)

    http://pngdelphi.sourceforge.net/

You need to run the following code before the first loading:


  RegisterClasses([TGifImage]);

  // if gifs are still not loaded, uncomment the next line

  //TPicture.RegisterFileFormat('gif', 'Gif Image', TGifImage);

  RV_RegisterHTMLGraphicFormat(TGifImage);

  RegisterClass(TPngObject);

  RV_RegisterHTMLGraphicFormat(TPngObject);

If you use Delphi version older than 6, you need some additonal code. See

"How to: use thirdpaty graphic formats in RichView" topic in the help file.


2) Demo how to download images using Indy components:

http://www.trichview.com/resources/html/rvhtml_indy.zip

RichViewActions (http://www.trichview.com/resources/actions/) also can use

Indy to download images.





Powered by ABC Amber Outlook Express Converter