Printable DataGrid
-
can we make printable grid of simple dot net grid, and can we print our form objects with grid? I am trying to create my own report builder for C# forms application
-
can we make printable grid of simple dot net grid, and can we print our form objects with grid? I am trying to create my own report builder for C# forms application
We have a sales program that allows the user to view the sales report on screen, contained in a paged
GridView
. The user has the option to print the report. When they select 'Print', the code: 1. Modifies theGridView
to display all rows (vs. paging) by changing thePageSize
property. 2. Hides all extraneous page elements by modifying theirVisible
properties. 3. Changes the page'sTheme
from a screen oriented theme to a theme optimized for printing by modifying (Page.Theme
andPage.StylesheetTheme
) properties. 4. Calls the browser's print command via JavaScript. Hopes this helps answer your question.Regards, Gary