telerik reporting– quick start (part 2)

Post on 20-Dec-2014

4.245 Views

Category:

Self Improvement

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

1

Telerik Reporting – Quick Start (Part 2)

Albert Kuo

2

Telerik Reporting Features Report Life Cycle Best Practice Scenario Implementation Process

◦ Create a class library◦ Create a report by Wizard◦ Create a web project and add class library as its

reference◦ Create a web page to do a simple report, include

search and export

Agenda

3

Report designer and wizard Export to csv, pdf, excel, tiff, and mhtml Support sub reports Support barcode Report converters(one-way): Crystal

Reports, Xtra Reports, and Active Reports.

Telerik Reporting Features

4

Report Life Cycle

Report Design

er

Report

Class

Datasourc

e

ReportInstanc

e

Report

Cache

OutputDocume

nt

OutputDocume

nt

OutputDocume

nt

OutputDocume

ntOutput

Document

Report processor

Report renderer

5

The report is designed

The report is

processed

The report is rendered

Report Life Cycle – cont.

6

create a class library that contains your reports

Create a web project and reference that

class library

Best Practice

You can have any number of Windows or Web viewing applications that get re-use out of the same class library.

This solution structure decouples your program logic from the report and its data.

7

Scenario

8

Create a class library

Create a report by Wizard

Create a web project and add class library

as its reference

Create a web page to do a simple report, include

search and export

Implementation Process1 2

34

9

Create a class library1

10

Create a report by Wizard2

Please check Telerik Reporting– Quick Start (Part 1).pptx for further information.

11

Create a web project and add class library as its reference

3

Remember to set COPY TO LOCAL to True for the three dlls.

12

Create a web project and add class library as its reference

3

13

Create / Edit ReportViewer.aspx

Edit ReportViewer.cs

Do testing

Create a web page to do a simple report, include search and export

4

14

Create / Edit ReportViewer.aspx

15

Create / Edit ReportViewer.aspx

16

Create / Edit ReportViewer.aspx

17

Edit ReportViewer.cs

18

Edit ReportViewer.cs

19

Edit ReportViewer.cs

20

Edit ReportViewer.cs

Injects the bytes to the Response Stream

21

Search function

22

Export function

23

Export function – cont.

top related