|
From: Chris T. <ch...@me...> - 2005-06-29 21:19:50
|
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 > > > > |