Activereports for. Net 3.0 self-study note (1) -- The First activereports Program

Source: Internet
Author: User
The activereports control of Data Dynamics is a very powerful report control on the DOTNET platform ...... In fact, I don't know how to introduce it, or I found an introduction from the internet. I borrowed the following:
Bytes ----------------------------------------------------------------------------------------------------------------

General Features

  • Activereports for. netBased on the licensing method licensed by each developer, and the distribution of copyrights is free of charge. The product includes a Report WizardWizardAnd a MicrosoftAccessReport conversion wizardWizardTherefore, you can quickly create reports.

  • Activereports for. netYou can also export reportsAdobe PDF,Microsoft Excel,RTF,Html,TextAndTiff. It can also be used based onWindowsAndWeb.

  • Activereports for. netIt also includesWindows ViewerControls Support split and multi-page views, a content Panel table, and text cable. He can also customize browser toolbar.

  • Activereports for. netProfessional EditionThere is an end user report designer control that allows you to integrate the report designer into your own applications.ProgramProvided to end customers. Allows them to create and modify reports. It also includes a serverWeb ViewerControl, usingASP. NETOfHTTP handlersAllows you to display reports without writing customCodeOutputHtmlAndPDF.

Supported development languages

    • Microsoft Visual Basic. net
    • Microsoft Visual C # 

Standard Edition

  • Provide integrated designer

  • SupportedOledb,SQL ServerAndXML CES

  • Includes customizableWindows ViewerWidget

  • ProvideCrystalAndMicrosoft AccessImport Tool

  • ProvideHtml,PDF,Excel,RTF,TiffAndTextExport 

Professional Edition

    • includes features of all standard versions

    • includes the End User Designer

    • includes Asp. NET Server Web Viewer controls

Bytes ----------------------------------------------------------------------------------------------------------------
Several important assemblies of activereports. Net 3.0:
Reporting Engine Activereports3.dll
Winforms viewer Control Activereports. viewer3.dll
Report designer Activereports. design3.dll
Webforms viewer Control Activereports. Web. dll
Winforms Chart Control Activereports. Chart. dll
Export FiltersActivereports. textexport. dll
Activereports. rtfexport. dll
Activereports. htmlexport. dll
Activereports. Export export. dll
Activereports. Export export. dll
Activereports. xlsexport. dll

Today's learning task: a simple example.
1. Open vs2005, a new winform project.

2. Open the Toolbox on the left, add a viewer to form, and set the dock to top. If you do not have the activereport control in the left-side toolbox, you must manually add it.

The viewer of activereport 3.0 clearly says "3.0" in the upper left corner ".

3. Add a activereports3.0 file to the project. I have not changed the default name, newactivereport1. There will be an additional newactivereport1.cs file in the project. This is the report file.

It consists of three parts: pageheader, detail, and pagefooter ).

4. Add label controls to pageheader and pagefooter. This label control is also one of the built-in controls of activereports, not the label of Ms.
Then add a chartcontrol to detail. activereports automatically starts the chart design wizard chart wizard.

5. After simple settings, I changed the style, changed the chart header and tail text, and added some false data (added to points of series ). During this period, I felt that the space was really powerful and fancy. There were a lot of styles, but I could also customize the 3D angle of view, so I rotated an angle.

6. In form load, put activereport into the created viewer. The Code is as follows:Try
{
//Setup a new instance of the newactivereport1
Newactivereport1 RPT= NewNewactivereport1 ();

//Run the report, and set it to the viewer control on the form
Rpt. Run ();
This. Viewer1.document=Rpt. Document;
}
Catch(Datadynamics. activereports. reportexception ex)
{
MessageBox. Show (ex. Message,This. Text );
}

7. Run F5 to see the report.

As a result, a simple column is ready.
(To be continued ......)

 

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.