Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: [Help] Printing problem in Mac OSX Leopard
Date: Tue, 30 Oct 2007 08:19:15 -0400
Organization: The MathWorks
Lines: 51
Message-ID: <fg77g3$6jo$1@fred.mathworks.com>
References: <fg5k90$6uk$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 1193746755 6776 144.212.107.174 (30 Oct 2007 12:19:15 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Oct 2007 12:19:15 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:435226



Niner wrote:
> Hi, my Macbook Pro had upgraded to Leopard. I found that Matlab can't print 
> out the figure I created. I got this error message:
> 
> '-----------------------------------------
> ??? Error using ==> graphics/private/send at 307
> Error using ==> graphics/private/send at 129
> Problem sending file to output device, system returned error :
> lpr: The printer or class was not found.
> 
> 
> Error in ==> printdlg>LocalInitFig at 469
>   if LocalJavaPrintDlg( Data, Dlgname )
> 
> Error in ==> printdlg at 100
>    Dlg=LocalInitFig(Data);
> 
> Error in ==> graphics/private/ppreview>onPrint at 906
> printdlg(fig);
> '-------------------------------------------
> 
> I can see the printer in the Print Window. But I can't print out the file. 
> Although I can save the figure as a PDF file and print it out without problem, I 
> still want to print the file directly under Matlab. Do I need to re-install 
> Matlab? Any idea to fix this problem? Thank you very much for your help.
> 
> I use Mac OSX Leopard, Matlab 2007a Student version
> 
> 

You will probably need to contact support to resolve this. It may help 
if you provide the info above as well as the output from the following:
   figure;
   plot(1:10);
   print -DEBUG

Note: if you're trying to print to something other than the default 
printer then change the print command to

   print -DEBUG -P<printername>

where <printername> would be replaced by whatever name is assigned to 
that printer.

The printcap entry for that printer may also be of use...

-- 

Richard Quist
Software Developer
The MathWorks, Inc.