© 2013 Happiest Minds Technologies Pvt. Ltd. All Rights Reserved
To understand this, consider example of Amazon eBook Reader (Kindle) or any other.
People can read and access books and documents from the cloud or service provider
datacenter. Similarly we can build custom eBook Reader for an enterprise, easily with the
use of XAML Flow Document which includes features of pagination and ambience.
Offline drop box
After browsing eBooks if we want to store those books in DropBox, we can create our
own offline DropBox and save the browsed eBooks and access them offline. Any file you
save to Drop Box also instantly saves to your computers, phones, and the Drop Box
website. Flow Document in offline Drop Box, extracts the content of eBooks and parses it
to display the eBook content stored in Drop Box in form of Flow Document.
Flow Document is as a Problem Solver when compared to Panels.
If we look at the difference between use of Flow Document and Panels for implementation
of making document, some developers are not fully cognizant of the capabilities of Flow
Document vis-à-vis the Panel. There are several issues which can be resolved by Flow
Documents, such as hosting and formatting flow content with advanced document features
such as pagination and columns. Flow Document is a heavy object, therefore if not handled
correctly applications run the risk of becoming unnecessarily heavy. If it is possible to use
Panel and implement the required features without using Flow Document, then that is an
How Flow Documents are easily printable, no need to use XPS.
Flow Document Reader already has inbuilt print feature, which is used as below:
// Create a PrintDialog
PrintDialog printDlg = new PrintDialog ();
// create a Flow Document dynamically.
Flow Document doc = // creating Flow Document
doc.Name = "FlowDoc";
// Create IDocumentPaginatorSource from Flow Document
IDocumentPaginatorSource idpSource = doc;
// Call PrintDocument method to send document to printer
printDlg.PrintDocument (idpSource.DocumentPaginator, "Hello WPF Printing.");