Printing .jpg's etc
(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
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
This discussion has been closed.
Comments
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;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com