ActiveReports3 Request technical support
InchToCm Method
See Also  Example


value
Inches value to be converted to centimeters .
Converts value from inches to centimeters.

Syntax

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

Parameters

value
Inches value to be converted to centimeters .

Return Value

Single value representing the inches value in centimeters.

Example

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

See Also