Click here to Skip to main content
15,896,469 members
Articles / Web Development / ASP.NET

Displaying , Exporting and Printing Crystal Reports in ASP.NET

Rate me:
Please Sign up or sign in to vote.
3.36/5 (43 votes)
14 Mar 2005CPOL1 min read 512.8K   13.3K   101  
Displaying , exporting and printing crystal reports in ASP.NET with source code.
<VisualStudioProject>
    <VisualBasic
        ProjectType = "Web"
        ProductVersion = "7.10.3077"
        SchemaVersion = "2.0"
        ProjectGuid = "{56E0AD20-F8FE-483C-BF1F-FA55D7D565D2}"
    >
        <Build>
            <Settings
                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "sachin"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "Library"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "Off"
                RootNamespace = "sachin"
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
                <Config
                    Name = "Release"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "false"
                    DefineTrace = "true"
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    Optimize = "true"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
            </Settings>
            <References>
                <Reference
                    Name = "System"
                    AssemblyName = "System"
                />
                <Reference
                    Name = "System.Data"
                    AssemblyName = "System.Data"
                />
                <Reference
                    Name = "System.Drawing"
                    AssemblyName = "System.Drawing"
                />
                <Reference
                    Name = "System.Web"
                    AssemblyName = "System.Web"
                />
                <Reference
                    Name = "System.XML"
                    AssemblyName = "System.Xml"
                />
                <Reference
                    Name = "CrystalDecisions.Shared"
                    AssemblyName = "CrystalDecisions.Shared"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalDecisions.Shared.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "CrystalDecisions.ReportSource"
                    AssemblyName = "CrystalDecisions.ReportSource"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalDecisions.ReportSource.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "CrystalDecisions.CrystalReports.Engine"
                    AssemblyName = "CrystalDecisions.CrystalReports.Engine"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalDecisions.CrystalReports.Engine.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "CrystalDecisions.Web"
                    AssemblyName = "CrystalDecisions.Web"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalDecisions.Web.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "System.Web.Services"
                    AssemblyName = "System.Web.Services"
                    HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll"
                />
                <Reference
                    Name = "CrystalEnterpriseLib"
                    AssemblyName = "CrystalEnterpriseLib"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalEnterpriseLib.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "CrystalReportPluginLib"
                    AssemblyName = "CrystalReportPluginLib"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalReportPluginLib.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
                <Reference
                    Name = "CrystalInfoStoreLib"
                    AssemblyName = "CrystalInfoStoreLib"
                    HintPath = "..\..\..\Program Files\Common Files\Crystal Decisions\1.1\Managed\CrystalInfoStoreLib.dll"
                    AssemblyFolderKey = "hklm\crystal.net"
                />
            </References>
            <Imports>
                <Import Namespace = "Microsoft.VisualBasic" />
                <Import Namespace = "System" />
                <Import Namespace = "System.Collections" />
                <Import Namespace = "System.Configuration" />
                <Import Namespace = "System.Data" />
                <Import Namespace = "System.Drawing" />
                <Import Namespace = "System.Web" />
                <Import Namespace = "System.Web.UI" />
                <Import Namespace = "System.Web.UI.HtmlControls" />
                <Import Namespace = "System.Web.UI.WebControls" />
            </Imports>
        </Build>
        <Files>
            <Include>
                <File
                    RelPath = "AssemblyInfo.vb"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "Global.asax"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "Global.asax.vb"
                    DependentUpon = "Global.asax"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "Global.asax.resx"
                    DependentUpon = "Global.asax.vb"
                    BuildAction = "EmbeddedResource"
                />
                <File
                    RelPath = "Styles.css"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "Web.config"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "WebForm1.aspx"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "WebForm1.aspx.vb"
                    DependentUpon = "WebForm1.aspx"
                    SubType = "ASPXCodeBehind"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "WebForm1.aspx.resx"
                    DependentUpon = "WebForm1.aspx.vb"
                    BuildAction = "EmbeddedResource"
                />
                <File
                    RelPath = "rep\CrystalReport2.rpt"
                    BuildAction = "EmbeddedResource"
                    Generator = "CrystalDecisions.VSShell.CodeGen.ReportCodeGenerator"
                    LastGenOutput = "CrystalReport2.vb"
                />
                <File
                    RelPath = "rep\CrystalReport2.vb"
                    DependentUpon = "CrystalReport2.rpt"
                    SubType = "Component"
                    BuildAction = "Compile"
                    DesignTime = "True"
                    AutoGen = "True"
                />
            </Include>
        </Files>
        <StartupServices>
            <Service ID = "{CF845C55-C321-4742-B673-E6212D061ED9}" />
        </StartupServices>
    </VisualBasic>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions