Click here to Skip to main content
15,035,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I've found that to print a pdf file:

C#
Dim psInfo As New ProcessStartInfo()
psInfo.FileName = "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
psInfo.Arguments = [String].Format("/s /o /h /t {0} {0}", pdfFileName, pdfPrinterName)
psInfo.WindowStyle = ProcessWindowStyle.Hidden
psInfo.CreateNoWindow = True
psInfo.UseShellExecute = True
Dim process__1 As Process = Process.Start(psInfo)


This is working well in IIS Express but in the deployment machine it doesn't print and it doesn't give error. The printer is a network printer correctly installed.

Could be a permission issue or configuration that has to be dome in IIS, ApplicationPool or else? In this case, which configuration or permissions do I have to give?

Thanks for help.
Posted
Updated 13-Sep-15 12:00pm
v3
Comments
RelicV 14-Sep-15 2:57am
   
Just a suggestion, check the adobe reader .exe path in the deployement machine.
Member 2160987 16-Sep-15 2:33am
   
HEllo,
the adobe reader path is right also in the deployment machine.
Member 2160987 14-Sep-15 10:07am
   
Upgrade: I've tried also with impersonation but no way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900