McBasic™Get McBasic™ ↗
Build 881
Runtime API

Reports

Choose a declared report resource or an explicit recordset, then select the output action.

Read the task-based guide before using an isolated signature. Arguments are positional unless a signature explicitly marks an optional argument.

Reports.ExportPdf#

Render a report definition into a writable PDF destination.

BASIC-facing contract
Sub ExportPdf(sourcePath As String, outputPath As String)

Reports.ExportTablePdfAsync#

Export the supplied rows, not an implicit full database query.

BASIC-facing contract
Async Sub ExportTablePdfAsync(rows As Recordset, title As String, outputPath As String)

Reports.Preview#

Open the report preview.

BASIC-facing contract
Sub Preview(sourcePath As String)

Reports.Print#

On Mac/Windows, False can mean Cancel. On Linux L1, True means handoff of a temporary PDF to the default viewer, not printing; the file is cleaned up at exit.

BASIC-facing contract
Function Print(sourcePath As String) As Boolean
Source baseline 20f4bfed6b · Build manifest
Sources & maintenance

Original web explanation, reviewed against these repository sources. API tables and example files follow the implementation.

  • docs/manual/33-publishing-for-windows.md
  • docs/manual/34-publishing-for-linux.md
  • src/McBasic.Build/PublishTargets.cs
  • src/McBasic.Build/PlatformAvailabilityCheck.cs
  • src/McBasic.Runtime/McPlatformAvailability.cs