rave , print bitmap from ttable (Blob)


what solution for that problem ?
LVL 8
BdLmAsked:
Who is Participating?
 
jimyXConnect With a Mentor Commented:
Here is a complete Demo for showing how to print BitMap from TTable:
http://www.nevrona.com/files/rpfish.zip
uses RpDBUtil, RPBase;
...
var
  Bitmap : TBitmap;
begin
...
        Bitmap := TBitmap.Create;
        try
          GraphicFieldToBitmap(Table1Graphic, Bitmap);
          PrintBitmapRect(XPos,YPos,XPos + TabWidth(0),
           YPos + TabWidth(0),Bitmap);
        finally
          Bitmap.Free;
        end;
...

Open in new window

0
 
ThommyConnect With a Mentor Commented:
Must go somehow like that:

bmp := TBitmap.Create;
bmp.LoadFromStream(YourTable.CreateBlobStream(YourTable.FieldByName('BitmapColName'),bmRead));
Image.Picture.Assign(bmp);

RvNDRWriter1.PrintBitmap( 1.0, 1.0, 2.0, 2.0, bmp);


Printing image in Rave Reports
http://stackoverflow.com/questions/1788144/printing-image-in-rave-reports



0
 
BdLmAuthor Commented:
thanks, did dot find the nevrona files with google :-(
0
 
jimyXCommented:
What Nevrona files?
0
All Courses

From novice to tech pro — start learning today.