Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
End User
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Convert value in mm (milimeters) to report unit value
rbuser
February 2007
edited February 2007
in
End User
Hi,
How to convert a value in mm (milimeters) to the reports unit value?
Greetings,
Filip Moons
Comments
nicocizik
February 2007
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com