Presentation on theme: "Printing Feature in SL4 Mahender Senior Software Engineer United Health Group."— Presentation transcript:
Printing Feature in SL4 Mahender Senior Software Engineer United Health Group
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. Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF,SQL Server, Team Foundation Server(TFS) and SharePoint Technology. MCTS Certified in Web Technologies. Blog : http://Msarangam.wordpress.com
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 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 Because Silverlight printing is bitmap-based, it isn’t a good tool for creating printouts that will be turned into PDFs.
Create a new PrintDocument Set the print job a name using DocumentName. This name is displayed in the print queue and is optional. PrintPage event handler. Set PageVisual to the UIElement you want to print. Finally call Print() to open the Print Dialog box.
DocumentName – Property defining the name of the print job. Print() – Prints the document PrintPage – Event fired before the printing of each page. If you print multiple pages then this event fires for each page. EndPrint – Event fired when the printing is either completed or cancelled. StartPrint – Event fired after the user clicks Print on the print dialog box but before the PrintPage HasMorePages – Part of the PrintPageEventArgs, the arguments passed into PrintPage, informing whether or not there are more pages to print.