如何在C#WinForms中清楚地将面板内容(基本上是标签)打印到打印机上 [英] How to print clearly contents of panel (basically labels) to printer in C# WinForms

查看:132
本文介绍了如何在C#WinForms中清楚地将面板内容(基本上是标签)打印到打印机上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有将面板打印到打印机的代码。它有标签以及datagridview和那些标签,datagridview是我唯一要打印的东西。它有效但打印时标签打印不清晰。它就像模糊不清。



有什么可以请帮帮我..?

解决方案

使用< a href =http://www.codeproject.com/Articles/17657/Form-Print-Control>表格打印控制 [ ^ ]并将Print属性设置为false,表示您不想打印的任何内容(即不在面板)?

I have the code for printing a panel to a printer. It has labels as well as datagridview and those labels, datagridview are the only thing that I want to print. It works but when it prints, the labels doesn't print clearly. Its like blurred or something.

can any please help me..?

解决方案

Use the Form Print Control[^] and set the "Print" property to false for anything you don't want to print (i.e. things not on the panel)?


这篇关于如何在C#WinForms中清楚地将面板内容(基本上是标签)打印到打印机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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