Home General

Image not printing problem

edited August 2011 in General
I am working in Delphi 2010, with 11.08 version of the report writer
(enterprise i think).

I have a report with a title at the top (ppLabel), and a TppImage
component below that. The report is inside delphi. In other words, i
put the ppREport component on a form and double clicked on it and
designed the report there. The image has a form that is displayed prior
to printing that allows the user to set the height and width of the page
and portrait or landscape. Then i pass those values to the report and
adjust the report. However, if for example a user picks a custom size
(8 1/2 by 9 for example instead of Letter (8 1/2 by 11), or chooses
landscape and the image will no longer fit on the page (autosize turned
off and the image is attempting to stretch the width of the page).
Instead of printing part of the image, it prints the label (title), and
the image is not displayed at all. Any ideas as to what to do to fix?

Thanks

Comments

  • edited August 2011
    Hi Jeff,

    If you are printing a static image stretched to 8.5x11, this implies
    that your report is sized to this measurement as well. Then once you
    change the dimensions of the page to something smaller, the static band
    size (height) has exceeded the size of a page and causes this problem.

    Once you resize the page dimensions, you need to be sure no bands are
    larger than the page or you will run into issues (endless page reports,
    errors, etc.).

    ReportBuilder 12 includes stretching anchor support which will resize
    object's width or height based on their parent's size. This would
    automatically re-size the image once the band has been re-sized (by you).

    Best Regards,

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