Hi
I like to Read Data values from the Report directly, but there are still problems for me. The Value is still empty and i don't know why. In Crystal Help there is a comment on this property, but i didn't understand this: "Can be read only when top-level Report object is formatting active"
VB Code:
Function GetDatabaseField(ByRef Report As CRAXDRT.Report, ByVal FieldName As String) As String Dim RptTable As CRAXDRT.DatabaseTable Dim RptField As CRAXDRT.DatabaseFieldDefinition Dim FieldValue As String On Error GoTo Fehler For Each RptTable In Report.Database.Tables For Each RptField In RptTable.Fields GetDatabaseField = RptField.DatabaseFieldName FieldValue = RptField.value Next RptField Next RptTable Exit Function Resume Fehler: Debug.Assert False End Function
Hope anyone can help me in this issue.
thanks.




Reply With Quote