Languages Visual Basic & VB.NET .Net Documents/ Frames  

DataGridViewPrinter Class

download download  
important code information
author:
Salan S. Al-Ani
minimum requirements:
DataGridViewPrinter Class description

Please refer to the following url for more details on how to use the class: The Class Features: (1) The print style is almost the same as the style of the DataGridView control: (A) the same font style for the header and other rows, (B) the same foreground and background styles for the header and other rows, (C) the same alternating background style for the rows, (D) special font for certain rows will be considered, (E) special foreground and background styles for certain rows will be considered, (F) the same alignment for the columns. (2) Supports multiple pages. (3) The width of each column to be printed is calculated to fit all the cells (including the header cell). (4) The title at the top of the page can be specified. (5) The title font and color could be specified. (6) The title and the header row are repeated in each page. (7) The report could be top-centered (considering the top margin of the page) on the page or be aligned to the top-left margin. (8) The printing process ignores any invisible rows or columns (assuming that the user does not want them to appear). (9) If the DataGridView width is greater than the page width, then the columns with x coordinate greater than the page width will be printed into another page. This ensures that all columns will be printed (Thanks to Stephen Long). (10) Support page numbering. (11) The printing process uses Graphics.MeasureString to calculate the height and width for a certain text with a specified font. This ensures the preciseness of the printing. (12) The class supports Right-to-Left fonts.


File List:
@PSC_ReadMe_4638_10.txt2Kb
DataGridViewPrinterApplication/0b
DataGridViewPrinterApplication/DataGridViewPrinter.cs21Kb
DataGridViewPrinterApplication/DataGridViewPrinterApplication.csproj3Kb
DataGridViewPrinterApplication/DataGridViewPrinterApplication.sln1Kb
DataGridViewPrinterApplication/DataGridViewPrinterApplication.suo17Kb
DataGridViewPrinterApplication/Program.cs499b
DataGridViewPrinterApplication/Properties/0b
DataGridViewPrinterApplication/Properties/AssemblyInfo.cs1Kb
DataGridViewPrinterApplication/Properties/Resources.Designer.cs3Kb
DataGridViewPrinterApplication/Properties/Resources.resx5Kb
DataGridViewPrinterApplication/Properties/Settings.Designer.cs1Kb
DataGridViewPrinterApplication/Properties/Settings.settings249b
DataGridViewPrinterApplication/bin/0b
DataGridViewPrinterApplication/bin/Debug/0b
DataGridViewPrinterApplication/bin/Debug/Customers.mdb1844Kb
DataGridViewPrinterApplication/frmMain.Designer.cs4Kb
DataGridViewPrinterApplication/frmMain.cs5Kb
DataGridViewPrinterApplication/frmMain.resx6Kb
DataGridViewPrinterApplication/obj/0b

Similar code
Programmatically Complete PDF Form Fields using VB and the iTextSharp DLL (Popularity: ) : This article describes a quick and simple approach to programmatically completing a PDF document through the use of the iTextSharp DLL. The article also discusses how one might go about using the iTextSharp DLL to discover and map the fields ...
XML Tutorial (Popularity: ) : Tutorial on XML and VB.NET. I have made this tutorial so that people can learn to use XML in their applications, there are 2 code tutorials written in VB.NET (1 for reading XML and 1 for writing XML). I have ...
Fill in PDF Form Fields using the Open Source iTextSharp Dynamic Link Library (Popularity: ) : This article describes a quick and simple approach to programmatically completing a PDF document through the use of the iTextSharp DLL. The article also discusses how one might go about using the iTextSharp DLL to discover and map the fields ...
ASP.NET Force Download (Popularity: ) : Version 2 of the Force Download script... Now with Gleemex!
Subclassing a Form in Microsoft Word (Popularity: ) : The following class will demonstrate how to SubClass a VB.NET form into MSWord as a toolbar using Windows API calls.
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 425
version
size in Kb 359
popularity   6002/7916016
user rating 6/10
ad


New Code
Popular Code