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

Using XPS Document API

· 52CE 我爱测

This section describes how to use the XPS Document API to perform programming tasks.

This section describes how to use the XPS Document API to perform programming tasks.

For examples of how to use the XPS Document API in a program, see the XPS Document API Programming Tasks section.

For information about how to use the XPS Object Model and how it is implemented by the XPS Document API, see About XPS Document API.

Getting Started with the XPS Document API

Before you start using the XPS Document API, make sure that you are familiar with the following programming topics:

COM Programming
Error Handling in COM

When using the XPS Document API, you might also want to use the following technologies:

DirectWrite
XPS Print API
XPS Digital Signature API

XPS Document API Programming Tasks

The topics in this section describe how to use the XPS Document API in a program and demonstrate how to perform some common programming tasks.

The XPS Document API uses collections to work with groups of interfaces. Working with XPS OM Collection Interfaces describes how to program with these collections.

The Common XPS Document Programming Tasks include the following:

Initialize an XPS OM
Create a Blank XPS OM
Read an XPS Document into an XPS OM
Navigate the XPS OM
Write Text to an XPS OM
Draw Graphics in an XPS OM
Place Images in an XPS OM
Write an XPS OM to an XPS Document
Print an XPS OM

The Advanced XPS Document Programming Tasks include the following:

Merge XPS Documents
Processing XPS Documents in an XPSDrv Filter

Related topics

XPS Document API Reference

XML Paper 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)

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

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