|
Posted by Eadmund on June 3, 2008, 8:53 am
Please log in for more thread options
Hi all,
2 stoppers for me in 1 week - I'm getting OLD......
My test perl script (below test.pl) that uses Win32::Printer to print
images and text, works fine from the command prompt, but, when called
from a web page hosted in IIS I get:
"ERROR: Cannot create printer object! The operation completed
successfully."
Nothing in IIS logs Nothing in Windows Logs. Nothing more in Carp.
nothing on google.
I'm pretty sure this is a priviledge problem. I've tried upping the
IUSR account priviledge that IIS uses to call web page scripts to
'local admin', but no joy
Any ideas on how / why this is occuring very gratefully recieved!
Ta
Eadmund
Eadmund@Letterbee.com
##########################################################################
#!perl
use Win32::Printer;
my $dc = new Win32::Printer(
printer => '\<SERVER>\<MyLASERPRINTER>',
papersize => A4,
color => COLOR,
orientation => PORTRAIT,
description => '',
unit => 'pt' );
my $font = $dc->Font('Arial Bold', 24);
$dc->Font($font);
$dc->Color(0, 0, 255);
$dc->Write("Hello, Mars!", 10, 10);
$dc->Page();
$image_handle = $dc->Image("tr7.jpg");
$dc->Image($image_handle, 0, 0, 600, 800);
$dc->End();
$dc->Close();
exit 0;
##############################################################################
|
| Similar Threads | Posted | | Error calling Win32::Printer from a perl script hosted in IIS on Win2k3 | June 3, 2008, 8:57 am |
| Win32::Printer::Enum::Printer($server) | June 23, 2005, 2:18 pm |
| No response from printer using Win32::SerialPort | October 11, 2006, 11:36 am |
| Problem printing a file uing Win32::Printer | September 30, 2006, 3:36 pm |
| Win32:Printer Windows x86 build with FreeImage.dll support build issues | May 29, 2008, 2:58 pm |
| Calling external dll from inline perl using gcc on XP | May 19, 2006, 2:48 am |
| ActivePerl error message? Router script. Please help.Newbie | May 17, 2006, 9:58 am |
| Calling External DLL functions in Perl using Inline | July 11, 2005, 6:47 am |
| PLJava - Perl embeded into Java (calling Perl from Java) - 1sr release - call for tests and review, please. | July 13, 2004, 4:06 am |
| hiding Win32::SerialPort->start( ... ) error messages | April 19, 2005, 2:27 am |
|