0
A
回答
1
1
您可以使用绘图方法来捕获窗体的整个客户区,然后使用Print方法来打印它们。
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
然后使用PrintDocument类来打印它。
相关问题
- 1. 打印winform屏幕
- 2. 将多页保存为PDF
- 3. .NET 2.0 WinForm打印屏幕
- 4. 在Winform C中打印DataGridView#
- 5. 打印Winform /视觉元素
- 6. 将多个页面打印为PDF
- 7. 在A4页面上打印并保存为PDF
- 8. 将WinForm格式打印到默认打印机
- 9. HtmlUnit并将页面保存为PDF
- 10. 将WinForm或控件保存到文件
- 11. C#,Winform - 创建PDF
- 12. 在Pdf Viewer中禁用控制打印(Ctrl + P)Devexpress Winform
- 13. 保存/打印pdf嵌入
- 14. Winform文本框不在打印图像
- 15. 在Winform应用程序中打印
- 16. C#Winform:打印ListView的内容
- 17. 打印/保存完整的网页为PDF
- 18. 如何在Codeignitor中打印预设报告并保存为PDF
- 19. 如何转换并保存打印文档为PDF
- 20. Winform缓存
- 21. 打开新的winform
- 22. 将页面的pdf页面保存为多页数组
- 23. 如何将网页转换为PDF格式,如PDF格式保存为PDF格式打印
- 24. C#WinForm的PrintPreviewDialog上:打印预览显示多个标签每页
- 25. Winform合并两列
- 26. 在Excel中打印到PDF(不保存为PDF)
- 27. 如何在WinForm上保存搜索
- 28. 保存的WinForm控件值c#
- 29. C#Winform:设置文件保存位置
- 30. python matplotlib:在多页中保存为pdf