简体   繁体   中英

How Print functionality in the Report (C#) works? How to print an image using printer shared in network?

I have a windows service,in which i have written some code to print an image file, the printer which i used is a shared over network(local network). But i was facing the permission issue. The printer is not printing the image. When i tried to print the document in crystal report using the same printer its working fine.

Anyone please help me to solve this.

regards,

Tanya

You'll have to run the service with a login that does have permission to print.

The other problem is services are not given the same sized UI stack as a normal UI application (since it doesn't have a UI). So, you may run into problems with printing because the printing methods are generally within a UI framework library (WPF, WinForms, etc...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM