Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get FieldObject Value

Hello,

I'd like to know how i can get a fieldobject value in a CR with VS 2008 ?

Of course, there is an error fldObject.Value does not exist.

My code sample :

For Each rptobject As ReportObject In cr.ReportDefinition.ReportObjects

Select Case rptobject.Kind.ToString

Case "FieldObject"

Dim fldObject As FieldObject = rptobject

If fldObject.Name.StartsWith("Avance") Then

If Not String.IsNullOrEmpty(fldObject.Value) Then

If IsNumeric(fldObject.Value) Then

Dim taux As Int32 = CType(fldObject.DataSource.Name, Int32)

taux = taux / 100

Dim taille As Int32 = fldObject.Width * taux

fldObject.Width = taille

End If

End If

End If

End Select

Next

Thanks per advance

Eric

Former Member
Not what you were looking for? View more on this topic or Ask a question