Crystal Reports for 'NET Framework 2'0 - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Crystal Reports for 'NET Framework 2'0

Description:

http://support.businessobjects.com/downloads/merge_modules.asp#07. http://msdn2.microsoft.com/en-us/library/ms225613.aspx. Setting Up the Development Environment ... – PowerPoint PPT presentation

Number of Views:80
Avg rating:3.0/5.0
Slides: 12
Provided by: charlie63
Category:

less

Transcript and Presenter's Notes

Title: Crystal Reports for 'NET Framework 2'0


1
Crystal Reports for .NET Framework 2.0
  • Deployment Using Merge Modules

2
Web Deployment
  • Advantages
  • Cost-effective
  • Easy to replicate and duplicate
  • Easy to maintain
  • No special software browser-based
  • Uses standard Microsoft tools (VS2005)

3
Merge Module Deployment
  • Crystal Reports Merge Modules
  • Merge modules contain all of the supporting code
    that is needed to run an embedded application
    that may be included within the project.
  • Merge modules must be included to enable standard
    deployment of Web or Windows applications.
  • Web Sites or Windows Projects can be deployed in
    a Web Setup Project
  • NOTEDeployment of Web Sites that use Crystal
    reports is available only if you have installed
    Crystal Reports Developer.

4
Project Setup
  • Create Web Site
  • Prepare Web Form (VB OR C - w/Code Behind)
  • Create Helper Method - ConfigureCrystalReport()
  • Add Namespace References
  • Call ConfigureCrystalReport() in Page_Init Event
  • Create Crystal Report (using IDE)
  • Add Crystal Report Viewer Control Link to
    Crystal Report
  • View Report in Browser

5
Web Site Pages / Deployment
WEB.CONFIG
6
Source Code
  • lt_at_ Page Language"C" AutoEventWireup"true"
    CodeFile"CrystalCS.aspx.cs" Inherits"CrystalCS"
    gt
  • lt_at_ Register Assembly"CrystalDecisions.Web,
    Version10.2.3600.0, Cultureneutral,
    PublicKeyToken692fbea5521e1304"
  • Namespace"CrystalDecisions.Web"
    TagPrefix"CR" gt
  • lt!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "http//www.w3.org/TR/xhtml1/DTD
    /xhtml1-transitional.dtd"gt
  • lthtml xmlns"http//www.w3.org/1999/xhtml" gt
  • lthead runat"server"gt
  • lttitlegtCrystal Reports - C Demolt/titlegt
  • ltlink href"/aspnet_client/System_Web/2_0_5072
    7/CrystalReportWebFormViewer3/css/default.css"
  • rel"stylesheet" type"text/css" /gt
  • lt/headgt
  • ltbodygt
  • ltform id"form1" runat"server"gt
  • ltdivgt
  • ltCRCrystalReportViewer
    ID"CrystalReportViewer1" runat"server"
    AutoDataBind"true" /gt
  • lt/divgt
  • lt/formgt

7
C Class
  • using System
  • using System.Data
  • using System.Configuration
  • using System.Collections
  • using System.Web
  • using System.Web.Security
  • using System.Web.UI
  • using System.Web.UI.WebControls
  • using System.Web.UI.WebControls.WebParts
  • using System.Web.UI.HtmlControls
  • public partial class CrystalCS
    System.Web.UI.Page
  • private void ConfigureCrystalReports()
  • CrystalReportViewer1.ReportSource
    Server.MapPath("Reports/CrystalReportCS.rpt")
  • protected void Page_Load(object sender,
    EventArgs e)

8
Visual Basic Class
  • Partial Class CrystalVB
  • Inherits System.Web.UI.Page
  • Private Sub ConfigureCrystalReports()
  • CrystalReportViewer1.ReportSource
    Server.MapPath("Reports/CrystalReportVB.rpt")
  • End Sub
  • Protected Sub Page_Init(ByVal sender As
    Object, ByVal e As System.EventArgs) Handles
    Me.Init
  • ConfigureCrystalReports()
  • End Sub
  • End Class

9
New Setup Project
10
Setup File Requirements
Required Filesc\Program Files\Common
Files\Merge Modules Microsoft_VC80_ATL_X86.msmpo
licy_8_0_Microsoft_VC80_86.msm
Crystal Reports for .NET Framework 2.0
Redistribution Package Merge ModulesCrystalRepor
tsRedist2005_x86.msm(copy to c\Program
Files\Common Files\Merge Modules)
11
Resources
  • White PaperCrystal Reports for .NET Framework
    2.0 Deployment Using Merge Modules
  • http//support.businessobjects.com/downloads/merg
    e_modules.asp07
  • http//msdn2.microsoft.com/en-us/library/ms225613.
    aspx
  • Setting Up the Development Environment
  • My Contact Info
  • Charlie Parker
  • PARKER Design Group, Inc.
  • 1101 Pennsylvania Avenue, NW
  • Suite 600
  • Washington, DC 20004
  • (202) 756-4980
  • charlie_at_homeshowcase.net
Write a Comment
User Comments (0)
About PowerShow.com