如何在便携式尺寸纸张上打印数据? [英] how to print data on portable size paper.?
问题描述
大家好,
iam正在开发一个计费应用程序.
iam developing a Billing Application.
但是一切都很好,但是我对打印感到震惊.
however everything is fine but i am strucked in printing.
在打印时,我需要在便携式尺寸纸张上打印数据,就像纸张尺寸等于ATM纸张尺寸一样.
in printing i need to print the data on portable size paper like the paper size is equal to ATM paper size.
打印纸包含以下数据
1)标头(包含2行)
1)header (contains 2 lines)
2)购买数据
3)页脚(包含2行)
3)Footer (contains 2 lines)
每个包含1和3的打印都相同,只应更改第二个.
every print contains 1 and 3 are same only the 2nd should be changed.
任何人都可以告诉我如何完成这项任务
can anyone please tell me how to achive this task
谢谢
Murali.
程序员
推荐答案
您可以将PrintDocument类打印任何内容到任何有效的Windows打印机. (包括XPS Document Writer或CutePDF之类的东西,以及热敏标签/收据打印机)
Using the PrintDocument class you can print anything to any valid windows printer. (Including XPS Document Writer, or things like CutePDF, and thermal label/receipt printers)
此页面上的示例将帮助您入门:
The example on this page should get you started:
http://msdn.microsoft.com/en-us /library/system.drawing.printing.printdocument.printpage.aspx
这篇关于如何在便携式尺寸纸张上打印数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!