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.
我有一个 Windows 服务,我在其中编写了一些代码来打印图像文件,我使用的打印机是通过网络(本地网络)共享的。但我面临着许可问题。打印机不打印图像。当我尝试使用同一台打印机在水晶报表中打印文档时,它工作正常。
您必须使用具有打印权限的登录名来运行该服务。
另一个问题是服务没有提供与普通 UI 应用程序相同大小的 UI 堆栈(因为它没有 UI)。因此,您可能会遇到打印问题,因为打印方法通常在 UI 框架库(WPF、WinForms 等)中