更新时间:2023-01-27 11:07:39
在您的应用程序中管理打印的***方法是使用PrintDocument Class
. MSDN文章 [ MSDN [ ^ ])类以生成正确的文档并打印该文档.
希望对您有所帮助
The best way to manage printing in your application, is to use thePrintDocument Class
. MSDN Article[^]. Saving a bitmap of the form, and printing the bitmap gives you terrible results, rather use the GDI+( MSDN[^] ) classes to generate a proper document and print that.
Hope this helps
看看,有关MSDN杂志文章的一个非常详细的示例,
使用.NET打印命名空间从Windows窗体应用预览和打印 [
Take a look, a very detailed example on the MSDN Magazine article
Preview and Print from Your Windows Forms App with the .NET Printing Namespace[^]
请参阅 http://msdn.microsoft.com/en-us/library/aa287529%28v = vs.71%29.aspx [ ^ ].