This is post number 10 in a series that describes new and updated samples in the Windows 7 SDK.  The following table lists samples that illustrate Windows XML Paper Specification (XPS), which provides users with a consistent document appearance regardless of where and how the document is viewed.  These samples are new to Windows 7 or updated to support Windows 7. 

 

See also:

New Win32 Samples in Windows SDK for Windows 7: Networking and Related Services

New Win32 Samples in Windows SDK for Windows 7: Multimedia

New Win32 Samples in Windows SDK for Windows 7: Security

New Win32 Samples in Windows SDK for Windows 7: Systems Management

New Win32 Samples in Windows SDK for Windows 7: Open Packaging Conventions (OPC)

New Win32 Samples in Windows SDK for Windows 7: Tablet PC and MultiTouch

New Win32 Samples in Windows SDK for Windows 7: Web

New Win32 Samples in Windows SDK for Windows 7: Windows Base

New Win32 Samples in Windows SDK for Windows 7: Windows User Interface

New Win32 Samples in Windows SDK for Windows 7: Windows XML Paper Specification (XPS)

New Win32 Samples in Windows SDK for Windows 7: Communication

 

Over 1,200 samples were changed since the release of the Windows SDK for Windows 7 RC release. Many “new to Win 7” samples were added, simplified, or extended, and many older samples were updated to support Windows 7 as well as older operating systems.

 

For build instructions and additional information about the samples, see the Readme.txt files and other documents in the SDK sample folders. For general sample building instructions, refer to the Samples Reference page that installs with the Windows SDK, and the SDK Release Notes (under the Start menu, in All Programs > Microsoft Windows SDK v7.0). By default, Win32 samples are installed under the following path: C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples.

 

Send your thoughts to the Windows SDK Feedback alias.  Tell us how you use the SDK and what we can do to improve your development experience.

 

New/updated Windows XML Paper Specification (XPS) samples in the Windows SDK for Windows 7

Sample

Description

Install Location

demonstrates usage of XPS APIs along with DWrite

Demonstrates how to use DWrite to place text on a page and create an xps document that includes that page.

xps\FlowText

Demonstrates how to load, modify and save xps file using new unmanaged XPS APIs

Demonstrates how to load an xps file from a stream, add text to a page and then resave the file as xps package.

xps\XpsLoadModifySave

Direct printing of XPS object model

The XpsOMPrint sample is a simple utility which demonstrates use of the XPS Object Model with the XPS Print API to programmatically create and print an XPS document.

XPS\XpsOMPrint

XPS Document Rollup sample

Demonstrates use of the XPS Object Model to combine XPS Documents.

Xps\XpsRollup

 

Karin Meier-Magruder

Program Manager for Samples

Windows SDK Team