ActiveReports.Document Assembly > DataDynamics.ActiveReports.Document Namespace > Document Class > Print Method : Print(Boolean,Boolean) Method |
'Declaration Public Overloads Function Print( _ ByVal showPrintDialog As Boolean, _ ByVal showPrintProgressDialog As Boolean _ ) As Boolean
public bool Print( bool showPrintDialog, bool showPrintProgressDialog )
private void rptPrint_ReportStart(object sender, System.EventArgs eArgs) { this.Document.Printer.PrinterSettings.Copies=5; } private void rptPrint_ReportEnd(object sender, System.EventArgs eArgs) { this.Document.Print(false, false); }
Private Sub ActiveReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart Me.Document.Printer.PrinterSettings.Copies = 5 End Sub Private Sub rptPrint_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart Me.Document.Print(False, False) End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2