ActiveReports3 Request technical support
CmToInch Method
See Also  Example


value
The measurement in centimeters to be converted to inches.
Converts value from centimeters to inches.

Syntax

Visual Basic (Declaration) 
Public Shared Function CmToInch( _
   ByVal value As Single _
) As Single
Visual Basic (Usage)Copy Code
Dim value As Single
Dim value As Single
 
value = ActiveReport3.CmToInch(value)
C# 
public static float CmToInch( 
   float value
)

Parameters

value
The measurement in centimeters to be converted to inches.

Return Value

Single value representing the specified centimeters value in inches.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
   
this.label1.Left = ActiveReport1.CmToInch(2);
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Me.Label1.Left = ActiveReport1.CmToInch(2)
End Sub

Remarks

ActiveReports uses inches for all coordinate and dimension properties.  This method helps convert centimeter values to inches.

See Also