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

Setting the size of the Preview window at runtime

edited May 2007 in General
Using Delphi 7 and 10.06 Enterprise

In a reports OnPreviewFormCreate event (in RAP) I want to set the size of
the preview form based on the size of the screen. Is it possible to access
the screens dimensions from within the report ?

Ian

Comments

  • edited May 2007
    Hi Ian,

    RAP does not natively include routines that return the size of the screen.
    In order to get the screen size from RAP, you will need to create a pass
    thru function that gives you this value from Delphi.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Hi,
    I thought that would be the case. I've managed to get round the problem
    by adding the required code in the plug-in class that enables the email
    button.

    Ian

This discussion has been closed.