![]() |
Desktop Development »
List Controls »
ListView controls
Intermediate
Custom ListView class for Report Generation, Part 1By Uraan Software SolutionsA simple class generating printible reports. |
C#, Windows, .NET 1.1VS.NET2003, Dev
|
|
Advanced Search |
|
|
|
||||||||||||||||

I've been using nashcontrol for generating reports, but had a difficult time incorporating the code into existing applications. In addition, his control does not provide the same functionality for list view controls. Nash�s control also had a drawback that it would crash for spaces in the column titles. This control is basically a wrapper for quick integration into existing code for printing listview controls.
MyListView control is derived from System.Windows.Forms.ListView, so use it like the native ListView control. The only additional functionality is that for printing the ListView.
// call the print method for displaying the Nash�s print dialog.
this.listView1.Print();

In the report, the column width is determined by the width of the columns in the ListView. For a detailed overview of the printing process, refer to the referenced article.
This is the first version, as soon as I get some time, I'll complete the tutorial.
| You must Sign In to use this message board. | |||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 14 Mar 2005 Editor: Smitha Vijayan |
Copyright 2005 by Uraan Software Solutions Everything else Copyright © CodeProject, 1999-2009 Web19 | Advertise on the Code Project |