Inconsistent dimensions

edited 8:11PM in FastReport 4.0
Hello fastreport developers,

could you improve dimensions please?

Example for PaperWidth:
- in designer is 42
- in script editor is 420

Example for Left in Memo:
- in designer is 2,70
- in FR3 file is 102,04724409

etc.

It is not normal !!!

Comments

  • gpigpi
    edited 8:11PM
    Objects??? coordinates and sizes are set in pixels, page dimensions - in mm. Since the ?«Left,?» ?«Top,?» ?«Width,?»
    and ?«Height?» properties of all objects have the ?«Extended?» type, you can point out
    non-integer values. The following constants are defined for converting pixels into
    centimeters and inches:
    fr01cm = 3.77953;
    fr1cm = 37.7953;
    fr01in = 9.6;
    fr1in = 96;
    For example, a band???s height equal to 5 mm can be set as follows:
    Band.Height := fr01cm * 5;
    Band.Height := fr1cm * 0.5;
    wrote:
    - in designer is 42
    Its depend on your designer settings (in, mm, px)
  • edited 8:11PM
    Have a look at frxClass.pas ...
    const
      fr01cm: Extended = 3.77953;
      fr1cm: Extended = 37.7953;
      fr01in: Extended = 9.6;
      fr1in: Integer = 96;
    
    ... and you find over there factors like above that help to convert pixels into cm/inch an vice versa.

    Mick
  • edited 8:11PM
    Hi Gpi

    You were faster while answering :-)
    And I was writing too long [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Mick[/img]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.