This documentation is archived and is not being maintained.
IXpsFixedPageWriter Interface
Visual Studio 2010
Defines methods for writing FixedPage parts to an XPS document.
Assembly: ReachFramework (in ReachFramework.dll)
The IXpsFixedPageWriter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | LinkTargetStream | Gets a list of strings that identify the LinkTarget hyperlink points that are contained in the current page. |
![]() | PageNumber | Gets the zero-based page number of this page. |
![]() | PrintTicket | Sets the default printing options for the page. |
![]() | Uri | Gets the URI of the fixed page. |
![]() | XmlWriter | Gets an XmlWriter for writing XML markup to the page. |
| Name | Description | |
|---|---|---|
![]() | AddColorContext | Adds a new XpsColorContext to the current page. |
![]() | AddFont() | Adds a new XpsFont to the current page. |
![]() | AddFont(Boolean) | Adds a new obfuscated XpsFont to the current page. |
![]() | AddFont(Boolean, Boolean) | Adds a new obfuscated or restricted XpsFont to the current page. |
![]() | AddImage(String) | Adds a new XpsImage with a specified MIME type to the current page. |
![]() | AddImage(XpsImageType) | Adds a new XpsImage with a specified XpsImageType to the current page. |
![]() | AddResource | Adds a new XpsResource to the current page. |
![]() | AddResourceDictionary | Adds a XpsResourceDictionary to the page. |
![]() | AddStoryFragment | Adds a StoryFragments element to an XPS package. (Inherited from IStoryFragmentProvider.) |
![]() | AddThumbnail | Adds a thumbnail image of a specified XpsImageType to the current page. |
![]() | Commit | Flushes and closes the fixed-page writer. |
The following example shows how to use the AddFixedPage method to obtain a fixed-page writer for adding pages to an XpsDocument.
// ------------------------- AddDocumentContent --------------------------- /// <summary> /// Adds a predefined set of content to a given document writer.</summary> /// <param name="fixedDocumentWriter"> /// The document writer to add the content to.</param> void AddDocumentContent (IXpsFixedDocumentWriter^ fixedDocumentWriter) { // Collection of image and font resources used on the current page. // Key: "XpsImage", "XpsFont" // Value: List of XpsImage or XpsFont resources Dictionary<System::String^,List<XpsResource^>^>^ resources; try { // Add Page 1 to current document. IXpsFixedPageWriter^ fixedPageWriter = fixedDocumentWriter->AddFixedPage(); // Add the resources for Page 1 and get the resource collection. resources = AddPageResources(fixedPageWriter); // Write page content for Page 1. WritePageContent(fixedPageWriter->XmlWriter, "Page 1 of " + fixedDocumentWriter->Uri->ToString(), resources); // Commit Page 1. fixedPageWriter->Commit(); // Add Page 2 to current document. fixedPageWriter = fixedDocumentWriter->AddFixedPage(); // Add the resources for Page 2 and get the resource collection. resources = AddPageResources(fixedPageWriter); // Write page content to Page 2. WritePageContent(fixedPageWriter->XmlWriter, "Page 2 of " + fixedDocumentWriter->Uri->ToString(), resources); // Commit Page 2. fixedPageWriter->Commit(); } catch (XpsPackagingException^ xpsException) { throw xpsException; } };// end:AddDocumentContent()
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
