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

How to find the Unprintable area at the bottom of a page?

edited September 2002 in General
Hi everybody!
It is possible to set 0 or a very small number as value for the
"MarginBottom" property. The result is that printers cut off the last
line(s) of the report. How many lines are cut off depends on the printer. I
was searching for a solution and found TppReport.PrinterSetup.PaperHeight.
This should be the real, physical height of the paper. I substracted (does
this word exists?) TppReport.PrinterSetup.PrintableHeight (which isn't
documented in the RB-Help). As Result it should return the height of the
unprintable areas. Because I don't know if the unprintable areas on the top
and bottom end of a page are the same I used "GetDeviceCaps(HNDL,
PHYSICALOFFSETY )" divided by "GetDeviceCaps(HNDL, LOGPIXELSY )" to get the
heigth of the upper unprintable area in inches and multiplied it with 25.4
to get the value in millimeters. Finally I substracted this from the
unprintable heigth I got from RB. This should be the value of the
unprintable area at the bottom of the page. BUT IT ISN'T!!! (excuse me ;-)).
Any suggestions? Sombody knows a better way? please let me know!
Maart Hoff

Comments

  • edited September 2002
    You really should refer to the printer driver specifications from the
    manufacturer to see what the exact unavailable space is for each printer to
    be sure what the values are. If you use the
    Report.PrinterSetup.PrintableHeight to determine the unprintable area
    (assuming top and bottom are the same), does it begin working for your
    reports?


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.