大网数据广告活动
打印与设备

Parameters in the PrintCapabilities Document

· 52CE 我爱测

Understand parameters in the PrintCapabilities document. This topic isn't current. For the most current information, see the Print Schema Specification.

This topic is not current. For the most current information, see the Print Schema Specification.

As discussed in Parameter Reference Elements, ParameterInit elements may be referenced from within Option instances, but the parameter construct also has a use that is independent of this type of element.

An example of a device configuration attribute that is well suited for parameter representation is CopyCount. The allowed values for this device configuration attribute can be easily and concisely defined without listing each of them explicitly. Although it would be possible, though tedious, to list each CopyCount value in its own Option, some device configuration attributes simply cannot be represented using a Feature/Option construct. As an example, consider a device that accepts a text string that is then used to produce a virtual watermark on each output page. The set of all possible text strings cannot easily be explicitly enumerated, but the text string can easily be described using a ParameterDef element.

The Print Schema Keywords document defines a number of commonly used parameter constructs, but PrintCapabilities providers are free to define additional ones of their own. However, these privately-defined parameter constructs are not portable to other devices, due to the fact that a PrintCapabilities document provided by another party does not define such a parameter construct. Whether schema-defined or privately-defined, the ParameterDef instance must be present in the PrintCapabilities document before the parameter is recognized and used by clients. These parameters are referred to as designated parameters.

Related topics

Print Schema Specification

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。