5,423,696 members and growing! (17,805 online)
Email Password   helpLost your password?
Desktop Development » List Controls » ListView controls     Intermediate

Custom ListView class for Report Generation, Part 1

By Uraan Software Solutions

A simple class generating printible reports.
C#, Windows, .NET 1.1, .NETVisual Studio, VS.NET2003, Dev

Posted: 14 Mar 2005
Updated: 14 Mar 2005
Views: 35,774
Bookmarked: 16 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
11 votes for this Article.
Popularity: 3.07 Rating: 2.95 out of 5
4 votes, 40.0%
1
1 vote, 10.0%
2
0 votes, 0.0%
3
3 votes, 30.0%
4
2 votes, 20.0%
5

Screenshot

Introduction

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.

Using the code

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();

Screenshot

Points of Interest

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.

History

This is the first version, as soon as I get some time, I'll complete the tutorial.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Uraan Software Solutions




Uraan Software Solutions was founded in January 2003 by a group of LUMS (Lahore University of Management Sciences - one of the best management institute in Asia) students by the name of Uraan Inc. Since then, we developed a variety of solutions from medical imaging applications to video streaming solutions. We’ve also grown to over 20 engineers strength and aim to grow to over 35 by end of this year. We’ve grown by 200% over past two quarters and are well set to maintain this growth rate for next few quarters. Our team consists of exceptional project managers, business analysts, software engineers and quality assurance engineers.

In year 2006, we changed our name to Uraan Software Solutions to accurately represent what we do.

Uraan Software Solutions stands for “Goals, Results, and Quality”. Our organization and our team have “goals” on a collective level as well as individual level. We judge ourself and everyone on the results that are obtained from these goals. Quality is the basic block on which the entire edifice of Uraan is built! Uraan is NOT a company. It’s a family/tribe, consisting of like-minded, similar-goals, and same-values individuals.

Some of our recent portals include:

www.web-idol.tv
www.travelervideos.com
www.basementcast.com
www.passthegame.com/index.php
Occupation: Web Developer
Location: Pakistan Pakistan

Other popular List Controls articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralError in 'system.drawing.dll'membercapuccino_fr1:18 3 Apr '06  
GeneralRecommended Changesmembersreejith ss nair0:46 28 Jun '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin 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-2008
Web10 | Advertise on the Code Project