printreport的对话框 [英] dialogbox of printreport

查看:179
本文介绍了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

Here is the code :

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


shotte


shotte

推荐答案

您好Sylvain
Hi Sylvain
     我.CrystalReport31.SetParameterValue(0,My.Settings.NoContrat.ToString)
    Me.CrystalReport31.SetParameterValue(0, My.Settings.NoContrat.ToString)


这篇关于printreport的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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