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:
  1. Function GetDatabaseField(ByRef Report As CRAXDRT.Report, ByVal FieldName As String) As String
  2. Dim RptTable As CRAXDRT.DatabaseTable
  3. Dim RptField As CRAXDRT.DatabaseFieldDefinition
  4. Dim FieldValue As String
  5. On Error GoTo Fehler
  6.  
  7. For Each RptTable In Report.Database.Tables
  8. For Each RptField In RptTable.Fields
  9. GetDatabaseField = RptField.DatabaseFieldName
  10. FieldValue = RptField.value
  11. Next RptField
  12. Next RptTable
  13.  
  14. Exit Function
  15. Resume
  16.  
  17. Fehler:
  18. Debug.Assert False
  19.  
  20. End Function

Hope anyone can help me in this issue.

thanks.