Sent to a top-level window or MDI window that started a report when Report Builder is ready to format a part of a report. SAM_ReportStart is sent after the application calls the report with either SalReportView or SalReportPrint to indicate that the report is starting. SAM_ReportStart is sent before the report displays or prints. You can use SAM_ReportStart to do any sort of initialization necessary before sending data to the report. Ignores SAM_ReportStart's return value. Message Variables hWndForm Unused. hWndItem Unused. wParam Window handle of the window that started the report. IParam Unused. Example Form Window: frmMainForm ... Message Actions On SAM_ReportStart ! Prepare SQL statement for Report Builder Call SqlPrepare ( hSql, "SELECT NAME, ADDRESS, PHONE" || "FROM CUSTOMER INTO :CompanyName, " || ":Address,:Phone)

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_ReportStart

See Also