Mac上でFigur​eの印刷を行うとエラ​ーが発生します。

4 Ansichten (letzte 30 Tage)
MathWorks Support Team
MathWorks Support Team am 15 Jun. 2012
Figureの「File」メニューから「Print」を選択して印刷を行うと、次のエラーが発生します。printコマンドによる印刷は正常に行うことができます。
a)
??? 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
b) ERROR: ??? Error using ==> print at 310 Problem sending file to output device, system returned error : lpr: The printer or class was not found. Error in ==> print at 310 throw(ex); Error in ==> printdlg>LocalJavaPrintDlg at 749 print(Data.Fig, pOpts{:}); Error in ==> printdlg>LocalInitFig at 469 if LocalJavaPrintDlg( Data, Dlgname ) Error in ==> printdlg at 100 Dlg=LocalInitFig(Data); ??? Error while evaluating uimenu Callback

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jan. 2020
Bearbeitet: MathWorks Support Team am 27 Jan. 2020
Mac の印刷システムである CUPS による問題です。
CUPS によって作成される /etc/printcap ファイルが存在しない場合、MATLAB の印刷ダイアログはプリンターのキュー名の代わりに無効なプリンターのアドレスを持つ print 関数を呼び出します。この無効アドレスは OS に認証されません。
この問題は CUPS の環境設定ファイル cupsd.conf の編集可能なブロックの先頭に以下のコードを追加し、CUPS プロセスを再起動することで回避できます。
Printcap /etc/printcap
PrintcapFormat BSD # For Snow Leopard only
cupsd.conf ファイルは '/etc/cups/cupsd.conf' に存在します。
なお、cupsd.conf を編集するには、root 権限を持つユーザでログインする必要があります。また、編集をする前にバックアップを残してください。
CUPS の環境設定ファイルを編集することができない場合、プリンターの設定方法を変更することになります。この時、プリンタ名は、半角アルファベットとアンダーバー(_)のみを含むものに設定してください。
プリンタ設定を変更するために、下記の手順を実行してください。
1. [システム環境設定]から、[プリントとファクス]を選択します
2. プリンタリストの左下にある [+] をクリックします
3. アドレスに[プリンタ名 もしくは IPアドレス]を入力し、名前欄に空白や括弧を含まない、シンプルな名称に設定し、[追加]を押します
4. プリンタのオプションを確認し、[続ける]をクリックします
5. [デフォルトのプリンタ]を、新しく作成したプリンタに設定します
6. MATLABを再起動します

Weitere Antworten (0)

Kategorien

Mehr zu 印刷と保存 finden Sie in Help Center und File Exchange

Produkte


Version

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!