Sunday, 15 February 2015

printing - print word document (.docx) from a java application running as windows service -



printing - print word document (.docx) from a java application running as windows service -

i have written little java application called java application running windows service. java application calls print method in order print word document: java.awt.desktop.getdesktop().print(new file(targetfile));

it works if phone call java application not work if executed windows service.

what happens have multiple ms word processes running in background each time window service tries execute java application.

do know how can print windows service ?

thanks,

asad

if had guess... need run windows service user appropriate permissions print.

by default service run system or localuser, not able print. that's why works when phone call not service. seek , set log on business relationship service personal business relationship , see if works.

java printing

No comments:

Post a Comment