C#中的打印设置 [英] Printing Setting in C#

查看:159
本文介绍了C#中的打印设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C#打印一个表格.我用A4纸张尺寸制作了一个表格,但是打印后,打印的页面有页边距,这不是我想要的.我在Visual Basic Power Packs中使用了打印表格控制器.如何解决打印机设置?

I want to print a form in C#. I made a form with A4 paper size but after print, printed page have margins and it''s not that I want.I used print form controller in Visual Basic Power Packs. How I can fix printer setting?

推荐答案

不要使用VB电源包进行打印-请使用
Don''t use the VB power packs for printing - use the PrintDocument [^]instead. That way, the printed result does not need to contain any UI components, it can just be the information you need to print, and you can fit it to the page any way you want. It will also look better, because the output will be printer resolution, rather than UI resolution.


这篇关于C#中的打印设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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