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

tppImage Picture.Data not saved in template

edited November 2003 in End User
Hello All

D5, RB 6.03

We have a report explorer ( incl designer ) in our main app which correctly
saves image data to the .rtm file as Picture.Data ( ftAscii ). This is an
Image ( not a DBImage )

We also have a report 'dump' utility which simply extracts all the templates
from a database and saves them as .rtm files for distribution purposes. This
utility just uses a report component. If the database template contains an
image, it does not appear to be saving the Picture.Data to the template
file, why is this ?

I have noticed that the image data is only missing if the image is in the
detail band and is saved correctly when the image is in a header or footer
band.



Paul.

Comments

  • edited December 2003

    There is nothing in RB to prevent the image data from being saved. This is
    most likely a database issue.

    If you are using the BDE, try increasing the MaxBlobSize setting. Image data
    will increase the size of the report. You can save the report to an .rtm
    file and use Windows Explorer to check the size of the .rtm file. That will
    give you an idea of how big the template is.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Thanks Nard

    Perhaps I didn't explain clearly but the image data is fine within the DB
    templates, it's only when it's saved to the .rtm file. Saving to file via
    the explorer is fine but the when the dump utility does a
    Template.SaveToFile, there isn't always a Picture.Data section for the
    image. i.e. examination of the .rtm via notepad or re-loading the template
    into the report explorer shows an 'empty' image.

    Paul

  • edited December 2003

    Try creating a very simple, minimal example that demonstrates this behavior.
    Use only standard Delphi components, ReportBuilder, and perhaps paradox
    tables. E-mail in zip format to support@digital-metaphors.com and we can run
    here in the Delphi debugger.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Hi Nard

    I discovered that the images were saved OK if they were in .bmp format but
    not in .jpeg.
    Adding jpeg to the uses clause solved the problem. It would have been useful
    to get a warning/exception about this somewhere rather than simply to drop
    the picture data.

    Paul


  • edited December 2003

    Thanks for the feeback.

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.