在C#compact框架中打印支持 [英] Print support in C# compact framework
问题描述
我正在开发智能设备应用程序。目标设备是WinCE 6.0。语言使用是C#.NET CF 2.0。
我想在我的应用程序中使用打印支持,这意味着我想从我的应用程序中打印文本文件。任何人都可以建议我如何从我的C#Compact框架应用程序打印。任何示例代码对我都有好处。
提前致谢,
Harish
谢谢,Harish
你是如何连接打印机的? 大多数设备没有打印机端口。 如果您使用串行连接,则可以使用串行端口控件(System.IO.Ports.SerialPort)进行打印。 如果您通过网络连接连接到打印机
,则打印机制造商必须提供网络API详细信息。 您还可以通过连接的桌面应用程序创建自己的打印服务器(通过System.Net.Sockets使用标准TCP / IP连接)。
您还可以查看 字段软件PrinterSDK( http://www.fieldsoftware.com/ )。
迪克
Hi,
I'm developing Smart Device application. Target device is WinCE 6.0. Language using is C# .NET CF 2.0.
I want print support in my application, means I want to print text file from my application. Can anybody suggests how can I print from my C# Compact framework application. Any Sample code is good for me.
Thanks in Advance,
Harish
Thanks, Harish
How are you connecting to the printer? Most devices do not have a printer port. If you are using a serial connection, then you would print using the serial port control (System.IO.Ports.SerialPort). If you are connecting to the printer via a network connection, then the printer manufacturer will have to provide network API details. You also can gen up your own print server via a connected Desktop application (use standard TCP/IP connections via System.Net.Sockets).
You also may want to look at the Field Software PrinterSDK (http://www.fieldsoftware.com/).
Dick
这篇关于在C#compact框架中打印支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!