On Sun, 2007-12-30 at 11:12 -0500, steve wrote:
> 
> I'm having problems printing from cream. I've used Vi in the past
> but have not used Vim or cream. From the command prompt I can enter:
> 
> lp -d Color-LaserJet-2600n <filename>
> 
> which prints just fine.
> 
> In cream, I first tried printing which of course did not work. I then
> tried to set my printer with:
> 
> :set pdev=Color-LaserJet-2600n
> 
> (no error reported)
> 
> I then tried printing again, no luck. I've tried the following printer
> expressions:
> 
> system('lpr' . (&printdevice  == ''?'' : ' -P' . &printdevice ) . '
' . v:fname_in) . delete(v:fname_in) + v:shell_error
> 
> system('lp' . (&printdevice  == ''?'' : ' -P' . &printdevice ) . ' ' .
v:fname_in) . delete(v:fname_in) + v:shell_error

I think there should be a space on either side of the question mark.

> The error I get is:
> "Error detected while processing function Cream_print:"
> "E365: Failed to print PostScript file"
> 
> What am I doing wrong?

Try changing File > Print Setup > Printer Expression... from Vim
default:

   system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . '
' . v:fname_in) . delete(v:fname_in) + v:shell_error

to

  system('lp -d Color-LaserJet-2600n ' . v:fname_in)

Also, it might be faster testing these at the command line (Ctrl+L,
then Ctrl+R,+ to paste from the clipboard).

Does that work?


-- 
Steve Hall  [ digitect dancingpaper com ]
:: Cream... usability for Vim
::   http://cream.sourceforge.net



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to