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

Convert value in mm (milimeters) to report unit value

edited February 2007 in End User
Hi,

How to convert a value in mm (milimeters) to the reports unit value?

Greetings,
Filip Moons

Comments

  • edited February 2007
    Hi Filip,

    It takes two steps, but you can use the utility functions provided in
    ppUtils.pas to convert a value. Otherwise you could do a direct conversion
    using a routine you create yourself.

    example (Convert 200 millimeters to inches)

    liMicrons: Integer
    ldValue: Double;
    ldOriginalValue: Double;

    begin

    ldOriginalValue := 200;

    liMicrons := ppToMMThousandths(ldOriginalValue, utMillimeters,
    pprtHorizontal, nil);
    ldValue := ppFromMMThousandths(ldMicrons, utInches, pprtHorizontal, nil);

    --
    Regards,

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

    Best Regards,

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