SAP Knowledge Base Article - Public

1199051 - Units of Measurement different in Crystal Reports designer and .NET SDK for position of Report Objects


It is possible to set the absolute position of a text object in Crystal Reports by right clicking the text field selecting "Size and Position".

When setting the position through the .NET SDK using the Left property of the Report Object, the field seems to be misaligned with other objects given the same left value through the Crystal Reports designer.


The reason for this is that the coordinates passed to the Left function are measured in twips, whereas the measurements in Crystal Reports are dependant on your operating system settings (metric or imperial).


A solution to this is to include a way of converting your measurements from inches/cm to twips programmatically before passing them to the TextObject in .NET. These are the conversion details:


1 inch = 1440 twips

1 cm = 566.929133858 twips


twips inch cm inches size position text object report measurement different , 4599900 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem


SAP Crystal Reports XI ; SAP Crystal Reports XI R2