Description
Contains information about the current ReportDataEvent.
Use this object to get the data of a report that was sent for print or print preview. To get the data, call the RegisterForReport method in the before notification of the event. The data is provided in the after notification.
Example
| Catching the ReportDataEvent (Visual Basic) | Copy Code |
|---|
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private Sub SBO_Application_ReportDataEvent( ByRef reportDataInfo As SAPbouiCOM.reportDataInfo, ByRef BubbleEvent As Boolean) Handles
SBO_Application.ReportDataEvent
If (reportDataInfo.BeforeAction = True) Then
reportDataInfo.RegisterForReport (True)
Else
Dim reportCode As String = reportDataInfo.ReportCode
Dim reportTemplate As String = reportDataInfo.ReportTemplate
Dim count As Long = reportDataInfo.GetPageCount()
Dim size As Long = reportDataInfo.GetReportSize()
Dim xmlDataWithProp As String
xmlDataWithProp = reportDataInfo.GetReportData(1, 1, True)
xmlDataWithProp = reportDataInfo.GetReportData()
End If
End Sub |
|
See Also