针式打印机 [英] dot matrix printer

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

问题描述

朋友们,
我是初学者.
我为我的酒店做了一个项目,现在已经完成了.
但是,我在报告时遇到问题.
我需要以较小的尺寸打印报告.
我对此有几个疑问.

1.如果我连接较小尺寸的点阵打印机,则会将数据缩小到纸张尺寸,或者仅适用于A4尺寸.

2.是否有任何编码或会自动进行编码.

请帮助我,它非常紧急.

Hi friends,
I am a starter.
I did a project for my hotel in that is now almost complete.
However, I have a problem with reporting.
I need to print the report in a smaller size.
I have few questions related to this.

1.If I connect the dot matrix printer of smaller size will it shrink the data to paper size or it will come only for A4 size.

2.Is there any coding or it will do it automatically.

Please help me its very urgent.

推荐答案

没有人可以给您正确的答案.

您尚未指定打印方式,使用的报告类型(如果有的话).


一般来说:
您将必须创建/保存2个对象,即打印设置和页面设置.
(都在system.drawing.printing命名空间中)
为了保存它们,我建议您将它们序列化为文本文件,可以将其保存到数据库中,但是我发现某些打印机有些麻烦.

然后将这些对象应用于您的报告.当然,您的报告必须经过精心制作,才能以正确的纸张尺寸显示所有数据.

一些打印机会自动缩放那里的页面,但是我不知道有任何这样做的矩阵打印机.

您还可以只在屏幕上显示报告,然后让用户单击打印"按钮(通常,报告生成器可以在屏幕上显示该报告,并且应该在其中显示打印"按钮),然后用户便可以选择打印机.但这意味着用户必须每次都执行此操作.
Nobody can give you a correct answer to this.

You haven''t specified how you do your printing, what kind of report do you use (if any at all).


Generally speaking:
You''ll have to create / save 2 objects, a printsettings and a pagesettings.
(both in the system.drawing.printing namespace)
For saving them I suggest you serialize them into text files, you could do it to a database but I''v found that to be somewhat troubling with some printers.

Then apply those objects to your report. Of course your report will have to be made such that it can display all data with the correct papersize.

Some printers scale there pages automatically but I don''t know of any matrix printers that do this.

You can also just display your report on the screen and then let the user click the print button (normally your report generator has a way to display it on screen and that print button should be in it) and from there the user will be able to select the printer. But that means the user has to do this every time then.


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

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