|
From: Chris T. <ch...@me...> - 2005-06-28 18:29:58
|
Ok. I think I can provide some background. In *nix, lpr is able to take input from standard input. SL takes advantage of this by opening up the printer command with a pipe. So it is equivalent of doing cat filename | lpr. For a Windows LPR to work, it will also need to accept the input from standard input, unless you want to hack SL to open the file based on path instead. Tero Afelt wrote: > 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 > <snip> > FileName : Required. Specifies, by name, the file to be printed. > Here is your problem. The XP lpr program doesn't appear to accept job data from standard input. Go Microsoft :-P You can either look for another command-line tool that does, or you can print to screen and print that way. Best Wishes, Chris Travers Metatron Technology Consulting |