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

Jpeg from a database and TppDBImage

edited February 2002 in General
Hi...

I'm having a bit of a problem building a report based on a field in the
database that contains jpeg data. The Jpeg loads fine in the regular TImage
component outside of the report, but appears to fail from inside the report
in the TppDBImage component. I get an error "Can not generate report". I
am using:
RB 6.03
D5
ADO connection to MS SQL Server 2000 Image Datatype

Ive toggled AutoSize, DirectDraw, MaintainAspect, Stretch properties and
GraphicType = JPEG but nothing can get the image to show in the report

The images I am loading are nearly full page in size. After this report
works successfully. I will use another component set to convert it to a PDF
files.

I may then later use the same method to generate PDF streams in an ISAPI web
app like the Maltus web example.

Any ideas on this one?

Thanks in advance,
Tom Glunz

Comments

  • edited February 2002
    "Tom Glunz CV" wrote in message
  • edited February 2002
    Hi..

    I saw the post you were reffering to. It says jpeg is natively supported.
    I assume this means I should not have to do anything special to load the
    image like they example shows with GIF images. I already have "jpeg" in my
    uses clause. Is there something else i am missing?

    Thanks,
    Tom

  • edited February 2002
    Try reducing the size of the TppImage control in the band. Perhaps the image
    can't fit. If there are headers and footers, then those will occupy space
    on the page, and reduces the amount of space that is available to the detail
    band. Try placing it in the page style band if you want it to occupy the
    entire page (the PageStyle band prints behind all other bands on the page).


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.