Visual Basic (Declaration) | |
---|---|
Overloads Public Function Print( _ ByVal showPrintDialog As Boolean, _ ByVal showPrintProgressDialog As Boolean _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool Print( bool showPrintDialog, bool showPrintProgressDialog ) |
Parameters
- showPrintDialog
- Specifies whether the Print dialog should be shown.
- showPrintProgressDialog
- Specifies whether the PrintProgress dialog should be shown.
C# | Copy Code |
---|---|
private void rptPrint_ReportStart(object
sender, System.EventArgs eArgs) |
Visual Basic | Copy Code |
---|---|
Private Sub ActiveReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart |
Please note that the document does not exist until the report has been run, so reports must be run prior to calling the Print method.