Sent to a top-level window or MDI window that started a report. Happens when Report Builder is ready to format the first page of a report. Report Builder sends SAM_ReportFetchInit after sending SAM_ReportStart. SAM_ReportFetchInit means that Report Builder is ready to receive data from the application. If the report contains data from a database, call SqlExecute. If SqlExecute returns TRUE, then Return TRUE. If you Return FALSE, the report stops. If you do not Return a value, or you do not process the message, the report continues. Message Variables hWndForm Unused. hWndItem Unused. wParam Window handle of a Report Builder window. IParam Unused. Example Form Window: frmMain ... Message Actions On SAM_ReportFetchInit If NOT SqlPrepare( hSql, SQL_Select ) Return FALSE Else If NOT SqlExecute( hSql ) Return FALSE Else Return TRUE

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int SAM_ReportFetchInit

See Also