Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How do you print a tiff image in RB 6.03?

edited February 2004 in General
I noticed that someone was printing Tiff images in a post on 02/03/2004.

How was he able to print Tiff images in RB 6.03? The tiff image does not
seem to be a supported image type for the RB images. I would love to be
able to print Tiff images if someone could explain how in RB?

Thanks ahead of time.
Bill Brittain

Comments

  • edited February 2004
    Hi Bill,

    The article below shows how to print different image formats in RB. I do
    not believe GraphicEx supports all .tif compression types however so that is
    something to be aware of. GraphicEx comes with a test program to load
    images to a canvas. I would test your images with this before trying to
    include it in ReportBuilder.

    ---------------------------------------------------------------------
    Article: ReportBuilder Image Support
    ---------------------------------------------------------------------

    ReportBuilder natively supports .bmp, .jpeg, .wmf, .ico image formats.

    ReportBuilder has an open architecture that supports any TGraphic
    descendant.

    For example, ReportBuilder ships with a freeware component called GIFImage
    that can be used with ReportBuilder to print .gif images. (see the main
    report demo app for an example.)

    There is another freeware component called GraphicEx that
    supports several additional formats - including tiff, targa, and autodesk.

    It can be downloaded from:

    http://www.lischke-online.de/Graphics.html


    ReportBuilder can easily support TGraphic descendants
    with a simple register call.

    Below is the code to our ppGIF.pas unit which
    'uses' and registers the freeware GIFImage component.


    {********************************************************************}
    { }
    { ReportBuilder Report Component Library }
    { }
    { Copyright (c) 1996, 2000 Digital Metaphors Corporation }
    { }
    {********************************************************************}

    unit ppGIF;

    interface

    {$I ppIfDef.pas}

    uses
    ppCtrls, GIFImage;

    implementation

    {***************************************************************
    *
    ** I N I T I A L I Z A T I O N / F I N A L I Z A T I O N
    *
    {****************************************************************}

    initialization

    ppRegisterGraphicClass('GIF', TGIFImage);

    finalization

    ppUnRegisterGraphicClass(TGIFImage);

    end.


    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.