Printing in sl

937 views

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
937
On SlideShare
0
From Embeds
0
Number of Embeds
365
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Printing in sl

  1. 1. Printing Feature in SL4<br />Mahender<br />Senior Software Engineer<br />United Health Group<br />
  2. 2. Mahender Sarangam<br />Having 5 years of experience on .NET Technologies. Working as a Senior Software Engineer in United Health Group (UHG India Information Service Ltd.). Worked with Big Firms like Deloitte Consulting & Wipro Technology. <br />Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF ,SQL Server, Team Foundation Server(TFS) and SharePoint Technology. <br />MCTS Certified in Web Technologies.<br />Blog : http://Msarangam.wordpress.com <br />
  3. 3. Printing<br />One of the new features added in Silverlight 4 is the comprehensive support for printing with the ability to query page sizes and the printable area<br />Using the API’s you can now print your whole application screen or a portion of the application. Also, you can customize the look while you printing your part/full application<br />Because Silverlight printing is bitmap-based, it isn’t a good tool for creating printouts that will be turned into PDFs.<br />
  4. 4. How to Start off?<br />Create a new PrintDocument<br />Set the print job a name using DocumentName. This name is displayed in the print queue and is optional.<br />PrintPage event handler. Set PageVisual to the UIElement you want to print.<br />Finally call Print() to open the Print Dialog box. <br />
  5. 5. Important Property<br />DocumentName – Property defining the name of the print job. <br />Print() – Prints the document <br />PrintPage – Event fired before the printing of each page. If you print multiple pages then this event fires for each page. <br />EndPrint – Event fired when the printing is either completed or cancelled. <br />StartPrint – Event fired after the user clicks Print on the print dialog box but before the PrintPage<br />HasMorePages – Part of the PrintPageEventArgs, the arguments passed into PrintPage, informing whether or not there are more pages to print. <br />
  6. 6. Thank you<br />

×