当我使用printreport发送到打印机时,有没有办法不弹出打印对话框 [英] Is there a way to not have the Print Dialog pop up when I use printreport to send to printer

查看:533
本文介绍了当我使用printreport发送到打印机时,有没有办法不弹出打印对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Basic 2008,我想知道当我使用printreport发送到打印机时是否有弹出打印对话框的方法

I'm using Visual basic 2008 and  I would like to know if there Is a way to not have the Print Dialog pop up when I use printreport to send to printer

Private Sub frmRapport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 
    Me.CrystalReport31.SetParameterValue(0, My.Settings.NoContrat.ToString)
    If not PrintDocument1.PrinterSettings.IsValid = False Then
        Me.CrystalReportViewer1.PrintReport()
        Me.Close()
    End If
End Sub


Thank You!


shotte


shotte

推荐答案

Hi Sylvian
Hi Sylvian


这篇关于当我使用printreport发送到打印机时,有没有办法不弹出打印对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆