lyxuser wrote:
Enrico Forestieri <[EMAIL PROTECTED]> writes:

Now it should work even when gsprint lives in a path with spaces.
If not, please report it back to me, as this time I will use an axe
to convince the command interpreter to do what it should do

The space error when I call lp directly from the command line is fixed, but I
still get an error when trying to print from Lyx:


lp: unknown option -- t
lp: unknown option -- o
lp: unknown option -- s
lp: unknown option -- p
lp: unknown option -- l
lp: unknown option -- a
lp: unknown option -- s
lp: unknown option -- .
lp: unknown option -- p
lp: unknown option -- s
Prints the given files to a windows printer by using gsprint.

Usage: lp [-h] [-d|-P printer] <files>...
All switches are accepted for compatibility with lp or lpr but are ignored.
If gsprint is found, its printer dialog is shown, otherwise an error is issued.
Error: Print document failed
----------------------------------------
Could not print the document C:\Program Files\LyX\Resources\examples\splash.lyx.

Check that your printer is set up correctly.




I wonder if this is a matter of how you filled in the preferences dialog. What works for me is this:

1.  Install Enrico's lp.exe binary in the LyX bin directory.

2. In Tools->Preferences...->Outputs->Printer, set the printer name to 'lp' and leave the printer command 'dvips'.

Is that how you are doing it?

/Paul

Reply via email to