iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
HI,
Do any of the Document Viewers read and print PDF Files? If so, can you print one or many pages? Can you print many documents in bulk via code?
Thanks,
Andre
WPF provides a wide range of document features, enabling users to create a document, arrange the document layout, and print it. On the other hand, the similar rich document framework is not available in Silverlight. Intersoft Document Framework addresses this limitation by providing similar document architecture in both WPF and Silverlight, allowing users to create documents that work consistently in both platforms.
FixedDocument
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.
FixedDocument logically binds an ordered sequence of pages together into a single, multi-page, fixed-layout document.
A FixedPage represents a page in FixedDocument. It provides content for the page within the FixedDocument. To support fixed content layout, FixedPageis inherited from Canvas. You can add controls with specific size and position inside a FixedPage.
<Intersoft:FixedPage Width="816" Height="1056"> <TextBlock Text="Text" Canvas.Left="100" Canvas.Top="100"></TextBlock> </Intersoft:FixedPage>
FixedDocument only allows PageContent element as its child element. Each PageContent can either refer to a source of content for a single page or contain the page itself. PageContent elements must be in sequential markup order, matching the page order of the document.
<Intersoft:FixedDocument> <Intersoft:PageContent> <Intersoft:FixedPage Width="816" Height="1056"> <TextBlock Text="Text" Canvas.Left="100" Canvas.Top="100"></TextBlock> </Intersoft:FixedPage> </Intersoft:PageContent> <Intersoft:PageContent Source="Pages/1.fpage"/> </Intersoft:FixedDocument>
FixedDocumentSequence
FixedDocumentSequence hosts an ordered sequence of one or more fixed documents that are organized as a single unit.
FixedDocumentSequence only allows DocumentReference element as its child element. Each DocumentReference refers to a single FixedDocument. Document reference elements must be in sequential order, matching the order in which the fixed documents are processed.
<Intersoft:FixedDocumentSequence> <Intersoft:DocumentReference Source="Documents/1/FixedDocument.fdoc"/> <Intersoft:DocumentReference Source="Documents/2/FixedDocument.fdoc"/> </Intersoft:FixedDocumentSequence>
Printing FixedDocument
FixedDocument should be contained within UXDocumentViewer or XPSDocumentViewer. Both viewer has built-in printing capability which allows users to easily print the fixed document. If you don't want to use the built-in capability, you can print a document programmatically.
private void Print() { PrintDocument pd = new PrintDocument(); pd.Print(FixedDocument1.DocumentPaginator, "Employee Document"); }
PrintDocument class will use the Print method to print the document. Print method needs two parameters, DocumentPaginator object and the document name. DocumentPaginator is an abstract base class that supports creation of multiple-page elements from a single document. By default, each FixedDocument has DocumentPaginator property that contain DocumentPaginator object for the fixed document.
For more detail information, please refer to Document Framework Overview and Document Controls Overview in ClientUI 6 Documentation.
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname