SlideShare a Scribd company logo
Lesson 08 Documents and Printings in WPF
Lesson 08 Documents and Printings in WPF
 Fixed documents
 Require a preciseWYSIWYG presentation
 Independent of the display/printer hardware used
 Typical uses for desktop publishing, word processing,
and form layout
 Flow documents
 Designed to optimize viewing and readability
 Dynamically adjust and reflow content based on run-
time variables
 built in features including search, viewing modes, and
the ability to change the size and appearance of fonts
Lesson 08 Documents and Printings in WPF
Block Description
Paragraph Contains (potentially richly formatted) text.
List Contains lists of various kinds (numbered, bulleted, and so on).
Table Contains tables similar to those in MicrosoftWord or HTML.
BlockUIContainer Contains various UI elements that are made part of the overall
flow.
Section Contains a group of other blocks. Sections are handy for applying
common attributes to a group of blocks, such as the same font
attributes to multiple paragraphs.
 FlowDocumentScrollViewer:
 Displays documents in a continuous flow with a scrollbar
 Similar toWeb pages or the Web Layout in MicrosoftWord
 FlowDocumentPageViewer
 Displays Flow Documents in individual pages, with page
flipping instead of scrolling.
 This is similar to the Full Screen Reading mode inWord
 FlowDocumentReader
 Combines the scroll viewer and the page viewer and
allows the user to switch between the two approaches.
 Default control used for Flow Documents
Flow Document
Lesson 08 Documents and Printings in WPF
Lesson 08 Documents and Printings in WPF
 XPS Documents are fixed, read-only
documents that created using the XML Paper
Standard (XPS)
 XPS simplifies the process by which digital
documents are created, shared, printed,
viewed, and archived
 XPS file describes exactly how the document
 should look on paper.
 XPS
 Contain one or
more documents
 Document
 Consists of one or
more pages
 FixedDocumentSequence
 FixedDocumentSequence class represents the set of
documents
 FixedDocumentSequence is a collection of FixedDocument
objects
 FixedDocument
 FixedDocument class represents a single document
 FixedDocument consists of a sequence of pages
 FixedPage
 FixedPage class represents for page
 Built from three element types: Canvas, Glyphs, and Path
Lesson 08 Documents and Printings in WPF

More Related Content

PPTX
PPTX
Globodox overview
PPTX
PDF
Textus Overview
PDF
[Altibase] 4-1 tablespace concept
PPTX
Introduction to web development
PPTX
Drupal Intro
Globodox overview
Textus Overview
[Altibase] 4-1 tablespace concept
Introduction to web development
Drupal Intro

Similar to Lesson 08 Documents and Printings in WPF (20)

PDF
Whitepaper: Flow Document – A solution to text readers in .Net - Happiest Minds
PDF
PPTX
Chpater1
PPT
design pattern is the computer science subject
PPTX
Introduction to wpf
PPT
Presentation wpf
PDF
XML Bible
PDF
PDF
Visual editing of semi-structured documents on the web
PPTX
Windows phone and azure
PPTX
windows presentation foundation
PDF
Chapter15
PPT
Presentation wpf
PPT
PPTX
Design patterns
PPTX
Essentials
PPTX
Basics of expression blend4
PPTX
Design Pattern
PPT
Dot Net Training Dot Net35
PDF
Naked Objects and Groovy Grails
Whitepaper: Flow Document – A solution to text readers in .Net - Happiest Minds
Chpater1
design pattern is the computer science subject
Introduction to wpf
Presentation wpf
XML Bible
Visual editing of semi-structured documents on the web
Windows phone and azure
windows presentation foundation
Chapter15
Presentation wpf
Design patterns
Essentials
Basics of expression blend4
Design Pattern
Dot Net Training Dot Net35
Naked Objects and Groovy Grails
Ad

More from Quang Nguyễn Bá (20)

PPTX
Lesson 09 Resources and Settings in WPF
PPTX
Lesson 07 Actions and Commands in WPF
PPTX
Lesson 06 Styles and Templates in WPF
PPTX
Lesson 05 Data Binding in WPF
PPTX
Lesson 04 WPF Controls
PPTX
Lesson 03 Layouts in WPF
PPTX
Lesson 02 Introduction to XAML
PPTX
Lesson 01 Introduction to WPF
PPTX
Business intelligence
PPTX
TDD - Test Driven Dvelopment | Test First Design
PPTX
Scrum sử dụng Team Foundation Server 2012
PPTX
Introduction to Microsoft SQL Server 2008 R2 Integration Services
PPTX
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
PPTX
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
PPTX
Office 2010 Programming
PPTX
Giới thiệu WCF
PPTX
MOSS 2007 Overview
PPTX
SharePoint Programming Basic
PPTX
SharePoint 2010 Business Intelligence
PPTX
Programming SharePoint 2010 with Visual Studio 2010
Lesson 09 Resources and Settings in WPF
Lesson 07 Actions and Commands in WPF
Lesson 06 Styles and Templates in WPF
Lesson 05 Data Binding in WPF
Lesson 04 WPF Controls
Lesson 03 Layouts in WPF
Lesson 02 Introduction to XAML
Lesson 01 Introduction to WPF
Business intelligence
TDD - Test Driven Dvelopment | Test First Design
Scrum sử dụng Team Foundation Server 2012
Introduction to Microsoft SQL Server 2008 R2 Integration Services
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
Office 2010 Programming
Giới thiệu WCF
MOSS 2007 Overview
SharePoint Programming Basic
SharePoint 2010 Business Intelligence
Programming SharePoint 2010 with Visual Studio 2010
Ad

Recently uploaded (20)

PDF
top salesforce developer skills in 2025.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
ai tools demonstartion for schools and inter college
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Essential Infomation Tech presentation.pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Transform Your Business with a Software ERP System
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Understanding Forklifts - TECH EHS Solution
top salesforce developer skills in 2025.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
ai tools demonstartion for schools and inter college
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
2025 Textile ERP Trends: SAP, Odoo & Oracle
Essential Infomation Tech presentation.pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How Creative Agencies Leverage Project Management Software.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Reimagine Home Health with the Power of Agentic AI​
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Transform Your Business with a Software ERP System
Internet Downloader Manager (IDM) Crack 6.42 Build 41
CHAPTER 2 - PM Management and IT Context
Understanding Forklifts - TECH EHS Solution

Lesson 08 Documents and Printings in WPF

  • 3.  Fixed documents  Require a preciseWYSIWYG presentation  Independent of the display/printer hardware used  Typical uses for desktop publishing, word processing, and form layout  Flow documents  Designed to optimize viewing and readability  Dynamically adjust and reflow content based on run- time variables  built in features including search, viewing modes, and the ability to change the size and appearance of fonts
  • 5. Block Description Paragraph Contains (potentially richly formatted) text. List Contains lists of various kinds (numbered, bulleted, and so on). Table Contains tables similar to those in MicrosoftWord or HTML. BlockUIContainer Contains various UI elements that are made part of the overall flow. Section Contains a group of other blocks. Sections are handy for applying common attributes to a group of blocks, such as the same font attributes to multiple paragraphs.
  • 6.  FlowDocumentScrollViewer:  Displays documents in a continuous flow with a scrollbar  Similar toWeb pages or the Web Layout in MicrosoftWord  FlowDocumentPageViewer  Displays Flow Documents in individual pages, with page flipping instead of scrolling.  This is similar to the Full Screen Reading mode inWord  FlowDocumentReader  Combines the scroll viewer and the page viewer and allows the user to switch between the two approaches.  Default control used for Flow Documents
  • 10.  XPS Documents are fixed, read-only documents that created using the XML Paper Standard (XPS)  XPS simplifies the process by which digital documents are created, shared, printed, viewed, and archived  XPS file describes exactly how the document  should look on paper.
  • 11.  XPS  Contain one or more documents  Document  Consists of one or more pages
  • 12.  FixedDocumentSequence  FixedDocumentSequence class represents the set of documents  FixedDocumentSequence is a collection of FixedDocument objects  FixedDocument  FixedDocument class represents a single document  FixedDocument consists of a sequence of pages  FixedPage  FixedPage class represents for page  Built from three element types: Canvas, Glyphs, and Path

Editor's Notes

  • #4: WPF divides documents into two broad categories based on their intended use; these document categories are termed "fixed documents" and "flow documents." Fixed documents are intended for applications that require a precise "what you see is what you get" (WYSIWYG) presentation, independent of the display or printer hardware used. Typical uses for fixed documents include desktop publishing, word processing, and form layout, where adherence to the original page design is critical. As part of its layout, a fixed document maintains the precise positional placement of content elements independent of the display or print device in use. For example, a fixed document page viewed on 96 dpi display will appear exactly the same when it is output to a 600 dpi laser printer as when it is output to a 4800 dpi phototypesetter. The page layout remains the same in all cases, while the document quality maximizes to the capabilities of each device. By comparison, flow documents are designed to optimize viewing and readability and are best utilized when ease of reading is the primary document consumption scenario. Rather than being set to one predefined layout, flow documents dynamically adjust and reflow their content based on run-time variables such as window size, device resolution, and optional user preferences. A Web page is a simple example of a flow document where the page content is dynamically formatted to fit the current window. Flow documents optimize the viewing and reading experience for the user, based on the runtime environment. For example, the same flow document will dynamically reformat for optimal readability on either high-resolution 19-inch display or a small 2x3-inch PDA screen. In addition, flow documents have a number of built in features including search, viewing modes that optimize readability, and the ability to change the size and appearance of fonts. See Flow Document Overview for illustrations, examples, and in-depth information on flow documents.
  • #12: The basic structure of an XPS file is very simple: a single XPS file contains one or more documents, and each document consists of one or more pages. (In printing terms, you could think of an XPS file as analogous to a print job containing one or more documents.) The System.Windows.Documents namespace represents this structure with three classes. FixedDocumentSequence represents the set of documents in the file. This contains a collection of FixedDocument objects, one for each document. These in turn contain a collection of FixedPage objects, one for each page.