开发者

Printing prn file in window service

开发者 https://www.devze.com 2022-12-30 06:01 出处:网络
I am unable to print prn file on network printer from .Net window Service. I use File.Copy method but it does not work. I use cmd.exe through Process.Start method but it does not work. But If I copy t

I am unable to print prn file on network printer from .Net window Service. I use File.Copy method but it does not work. I use cmd.exe through Process.Start method but it does not work. But If I copy the same code in windows form application then it works fine开发者_StackOverflow. Can anybody help me.


The problem was service was running under different system account and that printer was not configured for that user.

0

精彩评论

暂无评论...
验证码 换一张
取 消