LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   vim E365: Failed to print Postscript File (http://www.linuxquestions.org/questions/linux-software-2/vim-e365-failed-to-print-postscript-file-918751/)

cmnorton 12-14-2011 03:00 PM

vim E365: Failed to print Postscript File
 
I don't print from vim often, so I am not sure when this happened.

I cannot print (ha[rdcopy] from vim or gVim.

I get the error that is listed in the title.

I am running on Ubuntu 10.04.

I am looking for ideas on things to configure as well as anyone who has had experience with this problem and might have an answer.

MensaWater 12-16-2011 09:52 AM

I haven't done this before but on doing a test just now on CentOS5 it worked without issue:

In a file you have to specify what you're printing (range of lines) for example:
To print all lines:
1,$ha!
To print a subset (you can use Ctrl-G to find out line number of current line) so to print lines 136 to 192:
136,192ha!

Do you have a default printer defined? At command line can you do something like "cat /etc/hosts |lp" and have it print? It may be complaining due to lack of printer specification.

Also the man page says that print support has to have been compiled into your version.
It shows you can print to a file (this will at least verify printing setup works):
136,192ha! >mytestprintfile

cmnorton 01-04-2012 01:12 PM

Same Error
 
Thanks. Tried. Did not work. Same error.

Quote:

Originally Posted by MensaWater (Post 4551711)
I haven't done this before but on doing a test just now on CentOS5 it worked without issue:

In a file you have to specify what you're printing (range of lines) for example:
To print all lines:
1,$ha!
To print a subset (you can use Ctrl-G to find out line number of current line) so to print lines 136 to 192:
136,192ha!

Do you have a default printer defined? At command line can you do something like "cat /etc/hosts |lp" and have it print? It may be complaining due to lack of printer specification.

Also the man page says that print support has to have been compiled into your version.
It shows you can print to a file (this will at least verify printing setup works):
136,192ha! >mytestprintfile


MensaWater 01-04-2012 03:24 PM

Did you try the cat print test I suggested? Did it work or fail? If if failed what did it say?

cmnorton 07-19-2012 04:52 PM

Uninstalled and re-installed CUPS
 
I uninstalled and re-installed CUPS, and that fixed the problem.


All times are GMT -5. The time now is 01:53 AM.