|
From: Tero A. <te...@pr...> - 2005-06-27 19:44:06
|
I found out that : I only need to install additional networking component: =Other Network file and printer services to get lpr functionality. There is a howto http://www.xerox-techsupport.com/sharedinfo/win_xp/LPRCategoryView.htm so now I can print from command line with > lpr -S 192.168.1.252 -P HPLaserJ filename(with path) If I put this line to sql-ledger.conf file as %printer = ( Default => 'lpr -S 192.168.1.252 -P HPLaserJ'); It still doesn't work. When I try to print whit this settings I get a popup window asking if I like to open/save/cancel File Downloading ( file is is.pl or oe.pl depending what I like to print). In Linux we dont need to put this -S (serverID) option, but in windows it required ( without it I cant print from command line ) In microsoft documentation is told that: ( http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/lpr.mspx) Syntax lpr [-S ServerID] -P PrinterName [-C BannerContent] [-J JobName] [{-o | -o l}] [-d] [-x] FileName Parameters -S ServerID : Specifies, by name or IP address, the computer that hosts the printer on which you want to print the file. You do not need to provide this parameter if the printer is attached to the local computer. -P PrinterName : Required. Specifies, by name, the printer on which you want to print the file. -C BannerContent : Specifies the content to print on the banner page of the print job. If you do not include this parameter, the name of the computer from which the print job was sent appears on the banner page. -J JobName : Specifies the print job name that will be printed on the banner page. If you do not include this parameter, the name of the file being printed appears on the banner page. {-o | -o l} : Specifies the type of file that you want to print. The parameter -o specifies that you want to print a text file. The parameter -o l specifies that you want to print a binary file (for example, a PostScript file). -d : Specifies that the data file must be sent before the control file. Use this parameter if your printer requires the data file to be sent first. For more information, see your printer documentation. -x : Specifies that the lpr command must be compatible with the Sun Microsystems operating system referred to as SunOS for releases up to and including 4.1.4_u1. FileName : Required. Specifies, by name, the file to be printed. IN REALITY : -S ServerID is required ANY IDEAS WHAT IS WRONG is it this -S stuff or something else |