• 大小: 873KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-24
  • 语言: C#
  • 标签: 水晶报表  

资源简介

使用winform使用水晶报表的完整实例代码.包涵使用说明,数据库.

资源截图

代码片段和文件信息

//------------------------------------------------------------------------------
// 
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// 

//------------------------------------------------------------------------------

namespace Report1 {
    using System;
    using System.ComponentModel;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.CrystalReports.Engine;
    
    
    public class CrystalReport1 : ReportClass {
        
        public CrystalReport1() {
        }
        
        public override string ResourceName {
            get {
                return “CrystalReport1.rpt“;
            }
            set {
                // Do nothing
            }
        }
        
        public override bool NewGenerator {
            get {
                return true;
            }
            set {
                // Do nothing
            }
        }
        
        public override string FullResourceName {
            get {
                return “Report1.CrystalReport1.rpt“;
            }
            set {
                // Do nothing
            }
        }
        
        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section Section1 {
            get {
                return this.ReportDefinition.Sections[0];
            }
        }
        
        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section Section2 {
            get {
                return this.ReportDefinition.Sections[1];
            }
        }
        
        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section Section3 {
            get {
                return this.ReportDefinition.Sections[2];
            }
        }
        
        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section Section4 {
            get {
                return this.ReportDefinition.Sections[3];
            }
        }
        
        [Browsable(false)]
        [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public CrystalDecisions.CrystalReports.Engine.Section Section5 {
            get {
                return this.ReportDefinition.Sections[4];
            }
        }
    }
    
    [System.Drawing.ToolboxBitmapAttribute(typeof(CrystalDecisions

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    4194304  2017-05-05 15:59  Report1\mgz.mdf

     文件    1048576  2017-05-05 15:59  Report1\mgz_log.ldf

     文件        220  2017-05-06 09:42  Report1\Report1\App.config

     文件      42496  2017-05-06 10:52  Report1\Report1\bin\Debug\Report1.exe

     文件        220  2017-05-06 09:42  Report1\Report1\bin\Debug\Report1.exe.config

     文件      62976  2017-05-06 10:52  Report1\Report1\bin\Debug\Report1.pdb

     文件      22472  2017-05-06 09:46  Report1\Report1\bin\Debug\Report1.vshost.exe

     文件        220  2017-05-06 09:42  Report1\Report1\bin\Debug\Report1.vshost.exe.config

     文件        490  2012-06-06 02:06  Report1\Report1\bin\Debug\Report1.vshost.exe.manifest

     文件       5266  2017-05-06 10:34  Report1\Report1\CrystalReport1.cs

     文件      16384  2017-05-06 10:34  Report1\Report1\CrystalReport1.rpt

     文件      41863  2017-05-06 10:20  Report1\Report1\DataSet1.Designer.cs

     文件        361  2017-05-06 10:20  Report1\Report1\DataSet1.xsc

     文件       3268  2017-05-06 10:20  Report1\Report1\DataSet1.xsd

     文件        851  2017-05-06 10:20  Report1\Report1\DataSet1.xss

     文件       1673  2017-05-06 11:00  Report1\Report1\Form1.cs

     文件       2318  2017-05-06 10:54  Report1\Report1\Form1.Designer.cs

     文件       5817  2017-05-06 10:54  Report1\Report1\Form1.resx

     文件      93687  2017-05-06 08:06  Report1\Report1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       8214  2017-05-06 10:20  Report1\Report1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        546  2017-05-06 10:53  Report1\Report1\obj\Debug\Report1.csproj.FileListAbsolute.txt

     文件        975  2017-05-06 10:33  Report1\Report1\obj\Debug\Report1.csproj.GenerateResource.Cache

     文件      98371  2017-05-06 10:52  Report1\Report1\obj\Debug\Report1.csprojResolveAssemblyReference.cache

     文件      42496  2017-05-06 10:52  Report1\Report1\obj\Debug\Report1.exe

     文件        180  2017-05-06 10:33  Report1\Report1\obj\Debug\Report1.Form1.resources

     文件      62976  2017-05-06 10:52  Report1\Report1\obj\Debug\Report1.pdb

     文件        180  2017-05-06 10:33  Report1\Report1\obj\Debug\Report1.Properties.Resources.resources

     文件       6144  2017-05-06 10:34  Report1\Report1\obj\Debug\TempPE\CrystalReport1.cs.dll

     文件      18432  2017-05-06 10:20  Report1\Report1\obj\Debug\TempPE\DataSet1.Designer.cs.dll

     文件        488  2017-05-06 07:23  Report1\Report1\Program.cs

............此处省略21个文件信息

评论

共有 条评论