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

3 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 15 de Jun. de 2012
Editada: MathWorks Support Team el 27 de En. de 2020
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

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de En. de 2020
Editada: MathWorks Support Team el 27 de En. de 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を再起動します

Más respuestas (0)

Categorías

Más información sobre 印刷と保存 en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2008a

Community Treasure Hunt

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

Start Hunting!