Printing From Web App Not Working フォローする
We have been running Bartender 7.71 for years. We have a custom web app written in ASP, running on a 32 bit Windows 2003 server, in IIS. The ASP file makes a shell call to execute a Bartender command line:
Set oShell = Server.CreateObject("Wscript.Shell")
oShell.Run chr(34) & "C:\Bartender\7.71\bartend.exe" & chr(34) & " /DD /p /x /run /PRN=" & chr(34) & "\\printserver\printer" & CHR(34) & " /f=" & chr(34) & "C:\Websites\Traveler\Format\" & Label & chr(34),1,true
This works great, no problems.
Now I am trying to replace that aging server with a new 64 bit Windows 2008 R2 Server with IIS 7.5. While I was at it, I downloaded the trial version of the latest BarTender which I plan to buy it everything works out. I installed the new BarTender and tried the same command line (the path to the new exe was different, all else was the same) but it failed.
The command line, run directly in a command prompt on the server works perfectly.
"C:\Bartender\BarTenderSuite\bartend.exe" /DD /p /x /run /PRN="\\printserver\printer" /f="C:\Websites\Traveler\Format\36088222.BTW"
But running it from the webapp does not print. Here is the error from Event Viewer
Faulting application name: bartend.exe, version: 10.0.4.2868, time stamp: 0x510714bd
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18015, time stamp: 0x50b83c8a
Exception code: 0xe0434f4d
Fault offset: 0x0000c41f
Faulting process id: 0xc34
Faulting application start time: 0x01ce6d1658c50472
Faulting application path: C:\Bartender\BarTenderSuite\bartend.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 981515c2-d909-11e2-a405-782bcb78eaf6