Blogs

The Progress Bar - DevExpress XPF Blog

Grid Control Printing Support and Optimization for Silverlight and WPF (Coming in v2010 Vol 2)

     

In the previous version of the DXGrid for WPF, the print preview contained visual elements for each row within the grid. When creating a printable document, these elements were generated all at once and stored for the document’s entire life cycle. This worked perfectly for middle-size documents (25-50 pages). When creating a large document, however, it would become a time and memory consuming process, because in WPF, creating a visual element is a slow operation and requires a lot of memory resources.

In the 10.2 release of the DXGrid control, we have substantially optimized our WPF printing engine to make it faster and less memory-consuming. Now, a visual element is generated only once and reused for each row in a grid.

The table below compares the printing performance introduced in v10.1 and v10.2 when creating a document with 57 pages (2055 rows in a grid):

DevExpress_WPF_Grid_Print_Performance

Also in 10.2, we are introducing client-side printing for our DXGrid for Silverlight. Its features include:

  • Complete customization of grid rows and cells in a printed document via templates and styles
  • Advanced Print Preview control
  • Supported Export Formats: PDF, Excel, RTF, XPS, Text, CSV, MHT, HTML, Image (PNG, BMP, etc.)

Asynchronous page generation allows an end-user to continue working with an application while a large document is being created. Multiple printing documents (with different layout, appearance and grid configuration) can be generated at the same time.

DevExpress_WPF_Grid_PrintPreview

Published Oct 28 2010, 11:30 AM by Emil Mesropian (DevExpress)
Technorati tags: v2010.2, Silverlight, Grid, Printing, WPF, DXGrid
Bookmark and Share

Comments

 

Boris Bosnjak said:

Wow - that's radical!

October 28, 2010 3:49 PM
 

Mitchell Thraves said:

Great news, this has become an issue with more and more of my clients as they have been reporting 'Out of Memory' problems printing large grids.

Many thanks guys

October 28, 2010 4:16 PM
 

Sigurd Decroos said:

Things like this make me consider WPF more and more instead of WinForms. You're getting closer convincing me :).

October 28, 2010 5:29 PM
 

The Progress Bar said:

So lately, you’ve been seeing a lot of posts about new products and features for the Silverlight and

October 31, 2010 5:28 PM
 

Hieu Ho said:

It is wonderful.

November 1, 2010 12:11 AM
 

Ron P said:

Will this improve the export the same?

November 10, 2010 1:37 PM
 

The Progress Bar - DevExpress XPF Blog said:

If you follow our blogs, you may know that we are currently at our annual company summit where we discuss

November 29, 2010 9:23 PM
 

Anderson Amaral said:

Awesome!

January 25, 2011 12:51 PM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.