Telerik Reporting– Quick Start (Part 2)

5,222 views

Published on

Published in: Self Improvement, Technology
  • Be the first to comment

  • Be the first to like this

Telerik Reporting– Quick Start (Part 2)

  1. 1. Telerik Reporting – Quick Start (Part 2)<br />Albert Kuo<br />1<br />
  2. 2. Telerik Reporting Features<br />Report Life Cycle<br />Best Practice<br />Scenario<br />Implementation Process<br />Create a class library<br />Create a report by Wizard<br />Create a web project and add class library as its reference<br />Create a web page to do a simple report, include search and export<br />2<br />Agenda<br />
  3. 3. Report designer and wizard<br />Export to csv, pdf, excel, tiff, and mhtml<br />Support sub reports<br />Support barcode<br />Report converters(one-way): Crystal Reports, Xtra Reports, and Active Reports.<br />Telerik Reporting Features<br />3<br />
  4. 4. Report Life Cycle<br />4<br />Data<br />source<br />Report <br />renderer<br />Output<br />Document<br />Output<br />Document<br />Output<br />Document<br />Report<br />Class<br />Report<br />Instance<br />Output<br />Document<br />Report Designer<br />Output<br />Document<br />Report <br />processor<br />Report Cache<br />
  5. 5. Report Life Cycle – cont.<br />5<br />
  6. 6. Best Practice<br />You can have any number of Windows or Web viewing applications that get <br />re-use out of the same class library. <br />This solution structure decouples your program logic from the report and <br />its data.<br />6<br />
  7. 7. 7<br />Scenario<br />
  8. 8. Implementation Process<br />1<br />2<br />4<br />3<br />8<br />
  9. 9. Create a class library<br />1<br />9<br />
  10. 10. Create a report by Wizard<br />10<br />2<br />Please check Telerik Reporting– Quick Start <br />(Part 1).pptx for further information.<br />
  11. 11. 11<br />Create a web project and add class library as its reference<br />3<br />Remember to set COPY TO LOCAL to True <br />for the three dlls.<br />
  12. 12. Create a web project and add class library as its reference<br />3<br />12<br />
  13. 13. 13<br />Create a web page to do a simple report, include search and export<br />4<br />
  14. 14. 14<br />Create / Edit ReportViewer.aspx<br />
  15. 15. 15<br />Create / Edit ReportViewer.aspx<br />
  16. 16. 16<br />Create / Edit ReportViewer.aspx<br />
  17. 17. 17<br />Edit ReportViewer.cs<br />
  18. 18. 18<br />Edit ReportViewer.cs<br />
  19. 19. 19<br />Edit ReportViewer.cs<br />
  20. 20. 20<br />Edit ReportViewer.cs<br />Injects the bytes to the <br />Response Stream<br />
  21. 21. 21<br />Search function<br />
  22. 22. 22<br />Export function<br />
  23. 23. 23<br />Export function – cont.<br />

×