使用printdialog进行printform [英] Using printdialog for printform

查看:82
本文介绍了使用printdialog进行printform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用以下代码通过PrintForm在表单上打印我的数据。



Hi,
I am using following code to print my data on the form through PrintForm.

PrintDialog1.ShowDialog()
       PrintForm1.PrinterSettings = PrintDialog1.PrinterSettings
       PrintForm1.Print()





当我选择打印机并按确定时,它会产生错误





When I select printer and press Ok, it generates an error

Path cannot be null. Parameter name: path





请指教。



什么我试过了:



Google搜索了很多!

阅读论坛,没有任何对我有用。



Please advise.

What I have tried:

Googled a lot!
Read forums, nothing worked for me.

推荐答案

浏览文档 [ ^ ]清楚地说明缺少的内容。
A glance at the documentation[^] makes clear what is missing.


这篇关于使用printdialog进行printform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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