Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing problems with Snow Leopard
Date: Wed, 21 Oct 2009 07:33:39 -0400
Organization: The MathWorks
Lines: 36
Message-ID: <hbmrij$4h$1@fred.mathworks.com>
References: <hbl8d3$4td$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: quistr.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1256124819 145 172.31.45.136 (21 Oct 2009 11:33:39 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 11:33:39 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:578940


Jorge Ramirez wrote:
> I am unable to print figures to my USB connected printer. However, I am able to print files from the Matlab m-file editor without problems. The problem only occurs when trying to print Matlab-generated figures from the Matlab figure editor. The printer is a Canon MP620 Series, and it is connected to my iMac via USB.
> 
> I have edited the file /etc/cups/cupsd.conf and added the line: Printcap /etc/printcap at the beginning of the file, as has been suggested in this forum. I have restarted Matlab and the computer many times but the problem still persists. I have made sure that the cupsd.conf file has indeed been changed and saved.
> 
> I am running Snow Leopard 10.6.1 on a 24" iMac. The error messages I get when trying to print figures from the figure editor window are:
> 
> ??? Error using ==> print at 325
> Problem sending file to output device, system returned error :
> lpr: The printer or class was not found.
> 
> 
> Error in ==> printdlg>LocalJavaPrintDlg at 759
>         print(Data.Fig, pOpts{:});
> 
> Error in ==> printdlg>LocalInitFig at 479
>   if LocalJavaPrintDlg( Data, Dlgname )
> 
> Error in ==> printdlg at 104
>    Dlg=LocalInitFig(Data);
>  
> ??? Error while evaluating uimenu Callback
> 
> Thank you very much.

Does your /etc/printcap file have the entry for your printer?
What does your /etc/printcap file look like? If it's XML, try adding
PrintcapFormat BSD
underneath the   Printcap /etc/printcap   line in cupsd.conf, then restart 
CUPS and MATLAB

-- 

Richard Quist
Software Developer
The MathWorks, Inc.