c# - 如何从 C# 打印到 Bluebird BIP-1300 热敏打印机?

标签 c# embedded thermal-printer

我的应用程序在本地 CF 2.0 下运行,我想知道如何连接并发送内容以在 http://www.milliontech.com/home/content/view/195/95/的嵌入式打印机中打印'>Bluebird BIP-1300 设备。

理想情况下,我想要一个 C# 示例。

提前谢谢您。

最佳答案

使用bbpdaapi.dll(通过google搜索) 在 C# 中

using Bluebird.BIP.Printer;
...
this.prn1 = new Bluebird.BIP.Printer.Printer();
if (!this.prn1.Open(0))
            {
                MessageBox.Show("Can not open Printer", "Printer problem");
            }
this.prn1.PrintText("sdfgidfui", 0);
this.prn1.PrintBitmap(@"\My Documents\sample.bmp", 0);

if (this.prn1.WaitUntilPrintEnd() == 1)
{
MessageBox.Show("No paper in Printer", "Printer problem");
                }
            }
this.prn1.Close();

等等..

关于c# - 如何从 C# 打印到 Bluebird BIP-1300 热敏打印机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/182306/

相关文章:

c# - 我应该如何清除通用静态类中的字段?

c# - Dictionary 是否损坏或 GetHashCode() 应该仅基于不可变成员?

c - 在嵌入式处理器之间使用哪种压缩(已知字节分布)

printing - 用于以页面模式打印图像数据的 ESC-POS 代码

ios - iOS 应用程序上的 BLE 热敏打印机字体配置

android - 关闭 USB 设备连接

c# - 在c#中如何从资源文件夹中获取以前缀开头的文件名

c# - 从另一个实例创建新对象

c - 在 32 位 Controller 上访问 SFR(特殊功能寄存器)

c - 启用端口 RA0 作为输入并从 led 检索值 LDR