Dear ComponentOne
we are using C1DataGrids to display data between 0 and 9000 grid lines depending on the window the user opens. Up to today we used the Method GetPageImages() from C1DataGrid to create our Output for printing. We created a DocumentPaginator wrote and xpsDocument and then created a FixedDocumentSequence to show in a custom Print Preview Window.
A few Month ago we asked if there is way to increase performance of GetPageImages() because on big DataGrids this Task takes very long and since it needs to be in the UI Thread our Application freezes. Since there is no further plan to improve GetPageImages() we decided to change our print system to C1PrintDocument.
Our plan is to create a new C1PrintDocument with RenderTable, RenderArea, RenderImage and RenderText. We plan to customize and style the RenderTable and Table Headers to look like our C1DataGrid Headers. We need to show alternating Row Backgrounds. Further we build our custom TreeView and Multiline Column.
While investigating the componentone samples for printing we discovered a sample called PrintDocTemplates. Unfortunately we couldn't find more information about this template possibility and how we could benefit from it. We only know it takes more development time to get to know this feature and to implement it but are not sure about the benefits.
Maybe you could help us evaluate if we should make use of that template possibility. Could you tell us what are the advantages of using templates for c1PrintDocument?
greetings