我如何打印我的表格? [英] how do i print my form?
问题描述
当用户单击按钮时,我需要打印我的 VB.Net Windows.Form
的图像.有没有好的方法可以做到这一点?
I need to print an image of my VB.Net Windows.Form
when the user clicks a button. Is there a good method for doing this?
推荐答案
您需要使用 PrintForm
组件.请参阅如何:使用 PrintForm 组件打印表单:
You need to use the PrintForm
component. Please see How to: Print a Form by Using the PrintForm Component:
PrintForm 组件使您能够快速打印表格图像与屏幕上显示的完全一样不使用 PrintDocument成分.以下程序展示如何将表格打印到打印机,到打印预览窗口,然后到封装的 PostScript 文件.
The PrintForm component enables you to quickly print an image of a form exactly as it appears on screen without using a PrintDocument component. The following procedures show how to print a form to a printer, to a print preview window, and to an Encapsulated PostScript file.
这篇关于我如何打印我的表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!