Report.Print(Text [, Text] [, RecordRef]) Method
Version: Available or changed with runtime version 1.0.
Prints a specified report without running the request page. Instead of using the request page to obtain parameters at runtime, the method gets the parameter values as an input parameter string, typically from a RUNREQUESTPAGE method call.
From runtime version 9.0 and onward, this method is supported in Business Central online.
Report.Print(Parameters: Text [, PrinterName: Text] [, RecordRef: RecordRef])
A string of request page parameters as XML to use to run the report. The parameter string is typically retrieved from the return value a RUNREQUESTPAGE method call.
The name of the printer to use to print the report. The printer must be set up on the client computer. If you do not set this variable, the printer that is set as the default printer is used.
The RecordRef that refers to the table in which you want to find a record.
You typically use this method together with the RunRequestPage Method method. The RunRequestPage method runs a report request page without actually running the report, but instead, returns the parameters that are set on the request page as a string. You can then call the Print method to get the parameter string and print the report.
For a simple example that illustrates how to use the Print method, see example in the RunRequestPage Method method topic.