Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: [Help] Printing problem in Mac OSX Leopard
Date: Fri, 18 Jan 2008 03:23:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 86
Message-ID: <fmp62l$iq2$1@fred.mathworks.com>
References: <fg5k90$6uk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200626581 19266 172.30.248.37 (18 Jan 2008 03:23:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 18 Jan 2008 03:23:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1247400
Xref: news.mathworks.com comp.soft-sys.matlab:446264



I have a similar but not identical problem. I upgraded my
iMac to Leopard (10.5.1) and I am running Matlab R2007b.
I created a plot, then clicked "print" and get the error below.

Any suggestions what to try? 
I can print to a file and then via Preview to the printer.

-- Peter R
===
Matlab printing error:

>> plot(C1B15(1:10000))
??? Error using ==> send at 129
Error using ==> 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 while evaluating uimenu Callback

>> print -DEBUG
Debugging in PRINT, PrintJob object is:

pj = 

                Handles: {[1]}
                 Driver: 'ps2'
               FileName:
'/tmp/tpa9706fbc_54b2_48ce_859c_06332576a99c.ps'
             PageNumber: 0
                 Active: 0
                 Return: 0
             AllFigures: 1
            AllPointers: 'arrow'
            PrinterName: ''
          SimWindowName: ''
               Renderer: ''
         rendererOption: 0
            PrintOutput: 1
                Verbose: 0
            Orientation: ''
                 hgdata: []
             PaperUnits: ''
                PrintUI: 1
             nouiOption: 0
                 UIData: []
                    DPI: -1
              DriverExt: 'ps'
            DriverClass: 'PS'
           DriverExport: 0
            DriverColor: 0
         DriverColorSet: 0
            GhostDriver: ''
              GhostName: ''
             GhostImage: 0
            GhostExtent: []
       GhostTranslation: []
       PostScriptAppend: 0
       PostScriptLatin1: 1
         PostScriptCMYK: 0
    PostScriptTightBBox: 1
      PostScriptPreview: 0
            TiffPreview: 1
             TiledPrint: 0
               FromPage: 1
                 ToPage: 9999
             FramePrint: 0
               PrintCmd: 'lpr -r'
          DefaultDevice: '-dps2'
                  Error: 0
              DebugMode: 1
              Validated: 1
          XTerminalMode: 0

Printing handle: 1
Passing input args to hardcopy:
'/tmp/tpa9706fbc_54b2_48ce_859c_06332576a99c.ps' '-dps2' 
PRINT debugging: print command = 'lpr -r
"/tmp/tpa9706fbc_54b2_48ce_859c_06332576a99c.ps"'.
>>