Click here to Skip to main content
15,885,278 members
Articles / Web Development / HTML

A Class to Print and Print Preview a DataGrid or DataGridView Control

Rate me:
Please Sign up or sign in to vote.
4.76/5 (38 votes)
24 Jan 2016CPOL2 min read 479.6K   9.8K   131  
A class to add to your application to generate nicely formatted prints from a DataGrid.
Imports System
Imports System.Reflection

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("Data Grid Print Demo")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("Merrion Computing Ltd")> 
<Assembly: AssemblyProduct("")> 
<Assembly: AssemblyCopyright("(c) 2005 - Merrion Computing Ltd")> 
<Assembly: AssemblyTrademark("")> 
<Assembly: CLSCompliant(True)> 


' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:

<Assembly: AssemblyVersion("1.0.*")> 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Ireland Ireland
C# / SQL Server developer
Microsoft MVP (Azure) 2017
Microsoft MVP (Visual Basic) 2006, 2007

Comments and Discussions