|
From: Richard P. <ri...@he...> - 2005-06-30 09:46:06
|
Tero,
I was just about to tell you the same as Chris, but he got there first...
If you are still getting an error, it's probably due to gsprint
displaying a banner when it starts up:
- quote -
Copyright (C) 2003-2008, Ghostgum Software Pty Ltd. All Rights Reserved.
2005-03-01 gsprint 1.8
AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
- end quote-
This is still displayed when using the -quiet parameter and it's sent to
STDERR... the only way around it would be to wrap it up in a batch file
to redirect STDOUT & STDERR output to nul:
- - - gsp.bat- - -
@echo off
gsprint - > nul: 2>&1
- - - end gsp.bat - - -
Then change your %printers to:
%printer = ( Default => 'gsp.bat')
Hope this helps,
Regards
Richard
Chris Travers wrote:
> Hi Tero;
>
> Read the gsprint documentation again
> (http://www.cs.wisc.edu/~ghost/gsview/gsprint.htm)
>
> gsprint -
> will cause gsprint to read from standard input (the required behavior
> for SL).
>
> SL feeds the data to the program using standard input, not by filename.
>
> Best Wishes,
> Chris Travers
> Metatron Technology Consulting
>
> Tero Afelt wrote:
>
>> This solution seems very promising, there is however one small problem:
>>
>> gsprint command needs filename to be passed as : " filename "
>> not: -filename
>> If use:
>> %printer = ( Default => 'gsprint -');
>> it will be passed as ' gsprint -filename ', and ends up with error so
>> the big question is
>> how to change it to be:
>> 'gsprint "filename"'
>>
>> Now if I only could find out how to modify sql-ledger so that it is
>> passed so. Form.pm?
>> ANY IDEAS ??
>>
>>
>>
>>
>>
>>> 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
>>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>> from IBM. Find simple to follow Roadmaps, straightforward articles,
>> informative Webcasts and more! Get everything you need to get up to
>> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
>> _______________________________________________
>> sql-ledger-users mailing list
>> sql...@sq...
>> https://lists.sourceforge.net/lists/listinfo/sql-ledger-users
>>
>>
>>
>>
>
>
>
> !DSPAM:42c356ec158162490614752!
|