Skip to content

DevExpress-Examples/word-document-api-use-printablecomponentlink-to-print-document

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Processing Document API - Use the PrintableComponentLinkBase to Print a Document

This example demonstrates how to use a PrintableComponentLinkBase to print from the RichEditDocumentServer. An instance of the RichEditDocumentServer loads a document, inserts a datetime stamp in its header, and prints it.

Important

The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. For pricing information, please refer to the DevExpress Subscription page.

Various print options, such as page size, orientation, and margins are set in code at run time. The WinForms application searches a list of installed printers for a printer containing a certain text ("PDF") in its name and prints to it. If a printer is not found, the default printer is used.

Files to Look at:

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)