为应支持所有打印机型号的打印机生成Bill [英] Generate Bill for printer that should support for all the printer model

查看:142
本文介绍了为应支持所有打印机型号的打印机生成Bill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我们需要在C#WPF应用程序中为餐馆生成账单。每家餐厅都使用不同类型的打印机来收取费用。我需要一个示例代码来打印所有打印机型号的帐单。现在我们使用EPSON打印机。在ESPON打印机我可以生成账单,但我不能生成注入打印机或终端打印机的账单。任何人都可以帮我解决这个问题。

解决方案

如果你的意思是所有的打印机型号,你应该停止这种打印经常用于POS的方式(销售点),代码直接将要打印的简单文本发送到具有固定已知功能和其他依赖于模型的特性的打印机。



回到诚实的Windows打印基于安装打印机驱动程序和打印使用,也许只是默认打印机。



从这里开始:http://msdn.microsoft.com/en-us/library/ms742418.aspx [ ^ ]。



A简短的C#教程: http://www.switchonthecode.com/tutorials/printing-in-wpf [ ^ ]。



-SA

Actually we need to generate bill for restaurant in C# WPF Application. Each and every restaurant are using different type of printers to take the bill. i need a sample code to printer the bill in all the printer models. Right now we using EPSON printer. in ESPON printer i can generate the bill but i cant generate the bill for inject printer or terminal printer. can any one help me out to solve this problem.

解决方案

If you really mean "all the printer models", you should stop this manner of printing often uses in POS (Point of Sale), where the code directly sends the simple text to be printed to a printer with fixed known capabilities and other model-dependent peculiarities.

Come back to honest Windows printing based on installation of printer drivers and printing using, perhaps, just the default printer.

Start here: http://msdn.microsoft.com/en-us/library/ms742418.aspx[^].

A short C# tutorial: http://www.switchonthecode.com/tutorials/printing-in-wpf[^].

—SA


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

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