Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

printopt

Configure printer defaults

Syntax

[pcmd,dev] = printopt

Description

[pcmd,dev] = printopt returns the current system-dependent printing command and output device. printopt is a file used by print to produce the printed output. You can edit the file printopt.m to set your default printer type and destination.

  • pcmd contains the command that print uses to send a file to the printer when not using the printer drivers directly.

  • dev contains the printer driver or graphics format option for the print command.

The defaults for pcmd and dev are platform-dependent. This table lists the default values for each platform.

Platform

Print Command

Driver or Format

Mac and Linux®

lpr -r

-dprn

In R2014a and earlier, the driver was -dps2.

Windows®

COPY /B %s LPT1:

-dwin

See Also

|

Introduced before R2006a

Was this topic helpful?