Partilhar via


ReportRun.print Method

Definition

Sends the generated report to a print medium, such as a printer or the screen.

public:
 virtual int print();
public virtual int print ();
abstract member print : unit -> int
override this.print : unit -> int
Public Overridable Function print () As Integer

Returns

Remarks

The call to the super method in this method directs the generated report to a printMedium object, such as printer or screen. If the target is a screen, the call to the super method will create a reportViewer object on the client and call the showPage method. If the target is a printer, the call to the super method will create a reportOutput object and call the print method on this object. If the outputToClient method of the PrintJobSettings class has been called with a parameter of true, a reportViewer object will be created and the print method of that object will be called. In in this manner, a report that is generated on the server can be output to a printer that is set up on the client.

Applies to