• 大小: 15KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: C#
  • 标签: 票据打印  

资源简介

项目中需要打印榜单票据,并且需要自动进纸和撕纸,尝试了水晶报表以及一些第三方的报表工具,可能是方法不对,效果都不太行。最后通过winfrom自带报表工具实现了项目需求。

资源截图

代码片段和文件信息

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

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

namespace ClProject.Report {
    using System;
    using System.ComponentModel;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.CrystalReports.Engine;
    
    
    public class CPWeightBills : ReportClass {
        
        public CPWeightBills() {
        }
        
        public override string ResourceName {
            get {
                return “CPWeightBills.rpt“;
            }
            set {
                // Do nothing
            }
        }
        
        public override bool NewGenerator {
            get {
                return true;
            }
            set {
                // Do nothing
            }
        }
        
        public override string FullResourceName {
            get {
                return “ClProject.Report.CPWeightBills.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(Cr

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

     文件       5276  2014-08-08 15:01  Report\CPWeightBills.cs

     文件      41930  2014-09-05 14:48  Report\CPWeightBills.rdlc

     文件         91  2014-08-08 15:01  Report\DataSet.cs

     文件      61061  2014-08-15 15:42  Report\DataSet.Designer.cs

     文件        361  2014-08-08 15:01  Report\DataSet.xsc

     文件       5824  2014-08-15 15:42  Report\DataSet.xsd

     文件        856  2014-08-08 15:01  Report\DataSet.xss

     文件       6933  2014-08-27 09:15  Report\WeightRecordPrint.cs

     文件       2550  2014-08-12 15:02  Report\WeightRecordPrint.Designer.cs

     文件       5817  2014-08-12 15:02  Report\WeightRecordPrint.resx

     目录          0  2014-12-19 10:42  Report

    I.A....        40  2014-12-19 10:44  readme.txt

----------- ---------  ---------- -----  ----

               130739                    12


评论

共有 条评论

相关资源