Foxtable(狐表)用户栏目专家坐堂 → [求助]确定打印后,怎么防止打印被取消?


  共有2063人关注过本帖平板打印复制链接

主题:[求助]确定打印后,怎么防止打印被取消?

帅哥哟,离线,有人找我吗?
大红袍
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/7/12 10:48:00 [只看该作者]

 If MessageBox.Show("确定打印吗?","",MessageBoxButtons.YesNo,MessageBoxIcon.Question) = DialogResult.Yes Then
    Dim Pnl As WinForm.Panel = e.Form.Controls("Panel1")
    Dim doc As PrintDoc = e.Form.GernatePrintDoc(Pnl)
    Dim ptime As Date = Date.Now
    doc.Preview
    Dim sp As TimeSpan = Date.now-ptime
    If sp.TotalMilliseconds < 1000 Then
        doc.Preview
    End If
    'msgbox(sp.TotalMilliseconds)
End If


 回到顶部
总数 11 1 2 下一页