|
From: Richard P. <ri...@rp...> - 2005-06-29 08:45:53
|
Hi,
I think you have a couple of problems here...
1) SL makes PostScript files which are sent to the printer... unless
your printer is a postscript printer, you'll have problems
2) Windows does not have any command which will send standard input to a
printer...
The solution is to use the GSPrint utility from GSview:
%printer = ( Default => 'gsprint -');
will print to the default windows printer, you can make it print to a
specific printer by adding a -printer option as follows:
%printer = ( Laser => 'gsprint -printer "HP LaserJet 6P" -');
Alternatively,
%printer = ( Printers => 'gsprint -query -');
will ask you which printer to print to.
You will need to make sure that you add the gsview directory (c:\program
files\ghostgum\gsview) to your path.
I don't run SL on windows, but I think this will work...
Hope this helps
Regards
Richard
Tero Afelt wrote:
>PROBLEM: Printing in Windows XP
>I have installed Sql-ledger to a Win XP (service pack1 ) computer
>installation includes Apache 2.054
> Perl 5.8.7
> + Apache-DBI + Apache-DBILogin + DBD-Pg
> (specially compiled for Perl 5.8.7 win
>version )
> AFPL Ghostscript 8.51
> GSview 4.7
> Miktex - Full
> Microsoft VCToolkit
> Postgre 8
> IndigoStar - sendmail
>
>SITUATION: Everything works exept:
> 1) printing to a printer HPLaserJetIIIP
> 2) Emails don't have senddate ( some Perl-component missing ? )
>
>* Printer is local printer- Shared with name HPLaserJ
>* IP of computer running Sql-ledger is 192.168.1.252
>
>If I choose print to sceen with postgript I get a GSview window with perfect
>template
>
>If I choose to print to screen with PDF I get Adobe/GSview window with perfect
>template
>
>If I choose to print to file I get Apache-error and logfile shows me:
>-malformed header from script. Bad header=No File to print
>or
>-malformed header from script. Bad header=The syntax of the command
> is i: is.pl referrer: http://127.0.0.1/sql-ledger/is.pl.....
>( Which one I get depends what I put to sql.conf file as printer )
>
>Because winXP by default don't give me a possibility to use lpr ( as I can
>in Linux ) I have tried many different printer settings.
>
>When I print from command line I can do it for example:
>
>
>>print /d:\\192.168.1.252\HPLaserJ filename(with path)
>>
>>
>whit that command I can print to all shared LPT-connected-printers in network
>( Windows ones)
>
>so I try:
>
>Some examples:
># available printers
>%printer = ( Default => 'print /d:\\192.168.1.252\HPLaserJ');
>and
>%printer = ( Default => 'print /d:\\\\192.168.1.252\\HPLaserJ');
>and
>%printer = ( Default => 'copy /d:\\\\192.168.1.252\\HPLaserJ');
>
>BUT NON OF EM WORKS
>WHAT TO PUT THERE ????????
>
>
>
|