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

Printing .jpg's etc

edited July 2004 in General
(D7, Sql2K)
I have a db table with a column that contains the pathname for an image file
(.tiff, .jpg etc)
What is the best technique for printing these images using RB?
I know I can use a TppDBImage if I am printing from a blob field and I know
I can use a TppImage for the image file.
But how do I get (say) all 10 images to print?

e.g. My table contains

Category Filename
----------- ----------------------
Cat1 c:\images\image1.jpg
Cat2 c:\images\image2.jpg
Cat3 c:\images\image3.jpg
...
Cat10 c:\images\image10.jpg

Comments

  • edited July 2004
    Hi Sydney,

    Try placing a TppImage inside your detail band, and in the
    DetailBand.BeforePrint, assign the image file using the
    TppImage.Picture.LoadFromFile method. Something like the following...

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    ppImage1.Picture.LoadFromFile(ppReport1.DataPipeline['FileName']);
    end;

    --
    Best Regards,

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