Monday, March 29, 2010

Silverlight 4 RC - Printing API enhancements

The printing API was enhanced to help developers query for the printer page size and the printable area. Another change was where the ‘document name’ is provided. It is now required and a part of the Print() method. Before:

   1: PrintDocument doc = new PrintDocument();
   2: doc.DocumentName = "Sample Document";
   3: doc.Print();

After:

   1: PrintDocument doc = new PrintDocument();
   2: doc.Print("Sample Document");

You can view a video on using the printing APIs here.


Source : http://timheuer.com/blog/archive/2010/03/15/whats-new-in-silverlight-4-rc-mix10.aspx

No comments:

Post a Comment