Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 106,899 times

Contents

Downloads

Related Categories

Printing Reports in .NET - Introduction

mag37

Introduction

Printing a document programmatically is quite involved. Using the ReportPrinting library presented here, youll be able to print reports with multiple sections, with very little code.


Figure 1 - Part of a sample report

This report is comprised of plain text sections (such as the title "Birthdays", and the other paragraphs) and grids of data from a database (more specifically, from a DataView object). Since the initial version of this document, I've already extended the framework to handle images (from .NET Image class), boxes (similar to the CSS box implementation) and more are coming every week. For the latest versions, check the releases page.

This article includes

  • A step-by-step introduction
  • Descriptions of the classes available in the library
  • An introduction the possible layouts of your reports

Mike Mayer is a Microsoft MVP in Visual C#.

Comments

  • Re: [4585] Printing Reports in .NET

    Posted by pericoman on 04 Mar 2007

    Fist of all you have to learn how to program, but I think it's better that you learn how to read.

  • Re: [4585] Printing Reports in .NET

    Posted by wagb278 on 08 Jul 2006

    Simple, I hope, question - What and how do I add the "Library" to my C# VS2005 project?


    I.m new to C# and VS 2005.  This is my first project.  ReportPrinting appears to be ju...

  • Which FastReport to choose?

    Posted by Ann Ivanova on 27 Jun 2005

    Borland Delphi and Borland C++Builder users often ask us, “Which report generator to choose: either FreeReport or FastReport 2.*, or FastReport 3.*?”, “Why FastReport 2 and FastReport 3 both are avail...

  • FreeReport 2.33 released!

    Posted by Ann Ivanova on 12 Apr 2005

    - added Delphi 4-7, 2005, C++Builder 4-6 support
    - added FastReport 3 (*.fr3) format support in report designer
    #????
    #????

    FreeReport is a reporting tool component. It consists of report engine...

  • Removing grid

    Posted by luisr on 15 Oct 2004


    Hello,

    By now you probably figured it out, but you have to do something like this:

    dv = dt.DefaultView;
    SectionTable st = builder.AddTable(dv, false, 100.0f);
    st.Supp...