Skip to main content
Version: 2025

ISalReport

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Defines the provider contract for creating, previewing, exporting, and printing SAL reports.

public interface ISalReport

Operation status codes and supported options are determined by the report provider.

Example:

void SetTitle(PPJ.Runtime.Windows.ISalReport report)
{
report.DocumentName = "Monthly report";
report.ProgressCaption = "Preparing report";
report.SetReportVariable("Title", "Monthly report");
}

Properties

Instance member DocumentName

String: Gets or sets the document name used for printing.

Instance member FileName

String: Gets or sets the report file name.

Instance member Handle

IntPtr: Gets the runtime handle associated with this report instance.

Instance member InputItems

String: Gets or sets the comma-separated list of input bind variables.

Instance member LastPageNumber

Int32: Gets the last page number reported by the provider.

Instance member Owner

Control: Gets or sets the control that receives report notifications.

Instance member PrinterSettings

PrinterSettings: Gets or sets the printer configuration used when printing the report.

Instance member ProgressCaption

String: Gets or sets the progress-dialog title.

Instance member ProgressText

String: Gets or sets the progress-dialog message, which can contain two lines separated by a carriage return and line feed.

Instance member ReportDocument

Object: Gets the underlying provider-specific report document.

Instance member TableWindowSource

SalTableWindow: Gets or sets the table window that supplies the report data.

Instance member Variables

String: Gets or sets the comma-separated list of report variables.

Instance member Viewer

Control: Gets the current report viewer control.

Methods

Instance member ClosePreview()

Closes the report's preview window.

Instance member Create(file)

Creates a dynamic report from a template.

ParameterTypeDescription
fileStringThe template file, or to use the provider's built-in template.

Returns: Int32. The provider's creation status code.

Instance member DoPreviewCommand(command)

Sends a report command to the preview window.

ParameterTypeDescription
commandInt32A Sys.RPT_Cmd* command supported by the provider.

Instance member Export(file, firstPage, lastPage, options)

Exports a page range using the format identified by the destination file extension.

ParameterTypeDescription
fileStringThe destination file path, including an extension supported by the provider.
firstPageInt32The first page to export, interpreted by the provider.
lastPageInt32The last page to export, interpreted by the provider.
optionsInt32The provider-supported export option flags.

Returns: Int32. The provider's export status code.

Instance member GetReportVariable(name)

Reads a named variable from the report.

ParameterTypeDescription
nameStringThe report variable name.

Returns: Object. The variable value returned by the provider.

Instance member Preview(parent, options)

Displays the report in a viewer hosted by a control or a new top-level form.

ParameterTypeDescription
parentControlThe viewer's parent, or to create a top-level preview form.
optionsInt32The provider-supported preview option flags.

Returns: Int32. The provider's preview status code.

Prints a page range using the configured printer settings.

ParameterTypeDescription
copiesInt32The requested number of copies.
firstPageInt32The first page to print, interpreted by the provider.
lastPageInt32The last page to print, interpreted by the provider.
optionsInt32The provider-supported print option flags.

Returns: Int32. The provider's print status code.

Instance member SetReportVariable(name, value)

Assigns a value to a named report variable.

ParameterTypeDescription
nameStringThe report variable name.
valueObjectThe value to assign.

Returns: Boolean. if the provider accepts the assignment; otherwise, .