在C#中创建可打印的发票 [英] Creating a printable invoice in C#

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

问题描述

单击按钮时,我想根据列表视图中的项目以及一些组合框和文本框创建可打印的发票.我希望它是可打印的,并且其中的内容应该对齐并井井有条.我该怎么办.请帮助.

I want to create a printable invoice from items in listview and some comboboxes and textboxes when a button is clicked. I want it to be printable and the content in it should be aligned and in order. what should i do for this. plz help.

推荐答案

Hello;
您需要使用System.Drawing.Printing.PrintDocument类.使用它的想法是:获得类System.Drawing.Graphics的实例,并呈现所需的所有图形基元.
请按照该链接进行操作:链接1
链接2

问候...
Hello;
You need to use the class System.Drawing.Printing.PrintDocument. The idea of using it is: you obtain an instance of the class System.Drawing.Graphics and render all the graphical primitive you need.
kindly follow that link :Link 1
Link2

regards...


好吧,我的兄弟告诉我,他使用清单和标签(combit)的.net组件生成发票.它具有条形码功能并输出pdf(我认为),并且也许有一个免费版本(我可以将其添加到我的项目中,可能随vs !?一起提供).这就是我能说的.
Well, my brother told me that he uses the .net component of list and label (combit) for invoice generation. it has barcode capability and outputs a pdf (i think) and maybe there''s a free version available (i can add it to my projects, may be shipped with vs!?). that''s all i can tell.


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

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