Top Banner
Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer .NET Elite Team Aithent Technology
28

Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Reporting In

Visual Studio 2005An in-depth look at Reporting

Internals

Vijay Shandilya

Software Engineer.NET Elite Team

Aithent Technology

Page 2: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Agenda .Net Reporting Report Viewer Control Drill-down

Type Features Guide Lines Menu Items Tools Support Expressions Designing Tips

Page 3: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

.Net Reporting Two way to reporting in .Net

Crystal Report (Requires additional licenses.) Report Viewer Control (new component added)

ReportViewer Control The ReportViewer Web server control The ReportViewer Windows Forms control

ReportViewer Web server control Local processing mode Remote processing mode

Page 4: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Processing Mode Local processing mode

Refers to report processing that is performed by the ReportViewer control within the client application.

All report processing is performed as a local process using data that your application provides.

Remote processing mode Refers to report processing that is performed by a SQL

Server 2005 Reporting Services report server. In remote processing mode, the ReportViewer control is

used as a viewer to display a predefined report that is already published on a Reporting Services report server.

All processing from data retrieval to report rendering is performed on the report server.

Page 5: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Report Definition Language A report definition contains data retrieval and layout

information for a report. Report Definition Language (RDL) is an XML

representation of this report definition. RDL is an open schema; can extend RDL with additional

attributes and elements. In RDLC here ‘C’ stand for Client Side.

Page 6: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Kind of Reports Freeform reports

Composed of data regions & report items. Multicolumn reports

Present data in contiguous columns. Drill through reports

Data exploration through links Interactive reports

Include links, bookmarks, document maps. Simple reports

Include a single table or chart.

Page 7: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Reporting Features Expressions for calculating and aggregating data, and/or to

support conditional formatting. Actions to support links, bookmarks, and document maps in

HTML reports. Parameters, filters, sorting, and grouping functionality so that

you can retrieve and organize the data with precision. Support for adding custom code assemblies so that you can

provide dynamic functionality or special features in a report. Run-time functionality so that users can navigate a large report,

search for specific data, export the report to a file, print the report, and more.

Page 8: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Report Menu Report Parameter

The Report Viewer Control

Page 9: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

The Report Viewer Control Report Menu

Embedded Images

Page 10: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

The Report Viewer Control Report Menu

Report Data Sources

Page 11: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

The Report Viewer Control Report Menu

Report Properties

Page 12: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Add Code, Reference, Class, Assembly Type the methods to be used within the report.

Code must be written in Microsoft Visual Basic.

References. Lists the assemblies that the report references.

Classes. Lists the instance classes that are used by the

report.

Page 13: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

The Report Viewer Control The Tool Box

Text Box Line Table Matrix Rectangle List Image Sub report Chart

Page 14: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Report Viewer ControlPage Header

Body

Page Footer

Width

Page 15: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

The Report Viewer Control Text Box

Format : To format string HideDuplicate : To hide duplicate in a scope Padding : Pad left or right space Value : Value of text box WritingMode : Horizontal Or Vertical

Page 16: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Table Properties Group Filter Sorting Header Footer

Report Viewer Control

Table Header

Table Detail

Table Footer

Group 1

Page 17: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Matrix Properties Group ,Filter, Sorting GroupsBeforeRowHeaders LayoutDirection Position (SubTotal)

Report Viewer Control

Row

Column Data Total

Page 18: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

RectangleReport Viewer Control

Page 19: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

List Group Filter Sorting

Report Viewer Control

Page 20: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Image Source Value Action MIMEType Sizing

Report Viewer Control

Page 21: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

SubReport ReportName Parameter

Report Viewer Control

Page 22: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Expression Globals

Execution Time Page Number Total Pages Report Folder Report Name

Parameter Fields DataSets

Report Viewer Control

Page 23: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Expression Operators

Arithmetic : +, -, ^, *, /, \, Mod Comparison : <, <=,=>, >,= ,<> ,Like, Is Concatenation : & ,+ Logical : And , Not, Or, Xor, AndAlso, OrElse

Report Viewer Control

Page 24: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Expression Common Function

Text : Trim, LCase, Replace, Split, Format etc. Date & Time : CDate, DateDiff, DatePart, Month etc. Math : Abs, Min, Max, Rnd, Pow, Sqrt etc. Inspection : IsNumeric, IsNothing, IsDate etc. Program Flow : Choose, IIf, Switch Aggregate : Avg, Count, CountDistinct, CountRow Conversion : CDate, CChar, CInt, CBool Miscellaneous : Previous, RowNumber etc.

Report Viewer Control

Page 25: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Use Expression

Page 26: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Property: PrintOnLastPage PrintOnFirstPage

Margin: Set Left : 0.5 Set Right : 0.5

To Show Total on Footer Create a textbox which has total field. Hide it to report body OR create Fore Ground Color as

the back ground color. Use Report.Items(“txtTotal”).value to show total on the

footer

Report Viewer Control

Page 27: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

vbCrlf vbTab Custom Report Items =Int((RowNumber(Nothing)-1)/10)

Report Viewer Control

Page 28: Reporting In Visual Studio 2005 An in-depth look at Reporting Internals Vijay Shandilya Software Engineer.NET Elite Team Aithent Technology.

Resources www.msdn2.com www.codeproject.com