• 大小: 337KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-05
  • 语言: C#
  • 标签: c#  RDLC  动态生成  

资源简介

运用到了RDLC报表的XML特性,用到序列化知识与MemoryStream作为缓存,可以动态生成RDLC报表中的内容,用户可以控制报表的列。

资源截图

代码片段和文件信息

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

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

#pragma warning disable 1591

namespace DynamicGenerateRDLC {
    
    
    /// 
    ///Represents a strongly typed in-memory cache of data.
    ///

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Data.Design.TypedDataSetGenerator“ “2.0.0.0“)]
    [global::System.Serializable()]
    [global::System.ComponentModel.DesignerCategoryAttribute(“code“)]
    [global::System.ComponentModel.ToolboxItem(true)]
    [global::System.xml.Serialization.xmlSchemaProviderAttribute(“GetTypedDataSetSchema“)]
    [global::System.xml.Serialization.xmlRootAttribute(“DataSet1“)]
    [global::System.ComponentModel.Design.HelpKeywordAttribute(“vs.data.DataSet“)]
    public partial class DataSet1 : global::System.Data.DataSet {
        
        private dbCarLoadDataTable tabledbCarLoad;
        
        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public DataSet1() {
            this.BeginInit();
            this.InitClass();
            global::System.ComponentModel.CollectionchangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionchangeEventHandler(this.SchemaChanged);
            base.Tables.Collectionchanged += schemaChangedHandler;
            base.Relations.Collectionchanged += schemaChangedHandler;
            this.EndInit();
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info global::System.Runtime.Serialization.StreamingContext context) : 
                base(info context false) {
            if ((this.IsBinarySerialized(info context) == true)) {
                this.InitVars(false);
                global::System.ComponentModel.CollectionchangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionchangeEventHandler(this.SchemaChanged);
                this.Tables.Collectionchanged += schemaChangedHandler1;
                this.Relations.Collectionchanged += schemaChangedHandler1;
                return;
            }
            string strSchema = ((string)(info.GetValue(“xmlSchema“ typeof(string))));
            if ((this.DetermineSchemaSerializationMode(info context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
                global::System.Data.DataSet ds = new global::System.Data.DataSet();
                ds.ReadxmlSchema(new global::System.xml.xmlTextReader(new global::System.IO.String

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

     文件        426  2011-08-19 14:51  DynamicGenerateRDLC\.svn\all-wcprops

     文件        598  2011-08-19 14:51  DynamicGenerateRDLC\.svn\entries

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\.svn\prop-base\DynamicGenerateRDLC.suo.svn-base

     文件        947  2011-08-19 14:51  DynamicGenerateRDLC\.svn\text-base\DynamicGenerateRDLC.sln.svn-base

     文件      20992  2011-08-19 14:51  DynamicGenerateRDLC\.svn\text-base\DynamicGenerateRDLC.suo.svn-base

     文件       2091  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\all-wcprops

     文件       2175  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\entries

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\prop-base\DataSet1.xss.svn-base

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\prop-base\dsCarload.accdb.svn-base

     文件        419  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\app.config.svn-base

     文件     110672  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DataSet1.Designer.cs.svn-base

     文件        361  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DataSet1.xsc.svn-base

     文件      28270  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DataSet1.xsd.svn-base

     文件          3  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DataSet1.xss.svn-base

     文件     405504  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\dsCarload.accdb.svn-base

     文件       5096  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DynamicGenerateRDLC.csproj.svn-base

     文件        168  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\DynamicGenerateRDLC.csproj.user.svn-base

     文件      10444  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\Form1.cs.svn-base

     文件      14177  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\Form1.Designer.cs.svn-base

     文件       6627  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\Form1.resx.svn-base

     文件        500  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\.svn\text-base\Program.cs.svn-base

     文件        419  2011-08-19 11:38  DynamicGenerateRDLC\DynamicGenerateRDLC\app.config

     文件        134  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\.svn\all-wcprops

     文件        273  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\.svn\entries

     文件       1551  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\all-wcprops

     文件       1472  2011-08-19 14:51  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\entries

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\prop-base\dsCarload.accdb.svn-base

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\prop-base\DynamicGenerateRDLC.exe.svn-base

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\prop-base\DynamicGenerateRDLC.pdb.svn-base

     文件         53  2011-08-19 14:50  DynamicGenerateRDLC\DynamicGenerateRDLC\bin\Debug\.svn\prop-base\DynamicGenerateRDLC.vshost.exe.svn-base

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

评论

共有 条评论