Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 MonoMac(带有 gtk#),我需要将原始 ZPL 命令发送到 CUPS 打印机。原始命令看起来像文本。它们不是“图像”。我看到 Mono 可以通过 System.Drawing 打印图像,但是如何发送原始数据(原始文本)?
看来我需要调用PMPrinterPrintWithFile或直接与CUPS API交谈。但是我在 Mono 中看不到这些函数的绑定。
我知道我可以对“lpr”命令执行 CreateProcess。它有效,但这是一个非常非常最后的解决方案。