by lbc » November 18th, 2005, 4:26 pm
Hello Mirage
i think you should try to use for this purpose another great product by Kambiz that is TPrintPreview
Particularly you could investigate
TUnits = (mmPixel, mmLoMetric, mmHiMetric, mmLoEnglish, mmHiEnglish, mmTWIPS, mmPoints)
Determines how the control interprets the measurement values (e.g. paper size, margins, font's size, font's height, pen's size, ...)
mmPixel 1 unit = 1 pixel
mmLoMetric 1 unit = 0.1 millimeter
mmHiMetric 1 unit = 0.01 millimeter
mmLoEnglish 1 unit = 0.01 inch
mmHiEnglish 1 unit = 0.001 inch
mmTWIPS 1 unit = 1 twip = 1/20 point = 1/1440 inch
mmPoints 1 unit = 1 point = 1/72 inch
# function ConvertX(Value: Integer; InUnits, OutUnits: TUnits): Integer
Returns the conversion of a value specified by the Value parameter from the input unit specified by InUnits parameter to the unit specified by the OutUnits. The metod uses the horizontal resolution of the target device for the conversion.
# function ConvertY(Value: Integer; InUnits, OutUnits: TUnits): Integer
Returns the conversion of a value specified by the Value parameter from the input unit specified by InUnits parameter to the unit specified by the OutUnits. The metod uses the vertical resolution of the target device for the conversion.