Using MS Reporting Services and C # to generate reports

Source: Internet
Author: User

using MS Reporting Services with C # Generate reports


C #can also be used in the report, rare it, together to see!

         About writing a report, people in the workplace believe that there will be feelings, a neat, graceful report will be for you in front of the boss a lot of grace, and even raise:)-everyone likes a raise, right? In this article, we'll show you how to create a report using MS Reporting Services 2005来 and build it with a C # applet.
         This article assumes that the reader has a rudimentary understanding of the C + + IDE, and is able to write code to the visual Studio, which does not understand Ms Reporting Services is not related to understanding this article, of course, before writing a similar report, will help you get started faster. All right, roll up your sleeves and get ready to go!

         See figure 1, how complicated is this report? Guess how long it will take to complete? In a complex sense, it is simply a simple report extracted from the northwind->products (SQL Server 2000); In terms of time, I'm sure it won't take you a whole hour.


Figure 1


         Now, let's start by creating a report that starts with a C # applet that generates a report.


         First step: Create a Windows Application
         Select File menu, New-Project, choose C # from the project type, select Windows Application from the right dialog box, and in the name bar, preferably with a name that indicates the purpose of the program; in the position bar, specify the directory you want to save. Once finished, there will be a Form1 in the project, and we'll start with the form designer for it.
         Modify the properties of the Form1 as follows, but you can also modify other attributes as you like:

Form1.text = "MS Reporting Services with Smart Client"
Form1.size = 750, 300


         Step Two: Add a Report Viewer to form (form)
         What is a report viewer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.