RDLC 默认的RDLC文档

<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" 
        xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
	<Width>6.5in</Width>
	<Body>
		<Height>2in</Height>
	</Body>
	<rd:InitialLanguage>true</rd:InitialLanguage>
	<rd:InitialDimensions>
		<rd:UnitType>Inch</rd:UnitType>
		<rd:LeftMargin>1in</rd:LeftMargin>
		<rd:RightMargin>1in</rd:RightMargin>
		<rd:TopMargin>1in</rd:TopMargin>
		<rd:BottomMargin>1in</rd:BottomMargin>
		<rd:PageWidth>8.5in</rd:PageWidth>
		<rd:PageHeight>11in</rd:PageHeight>
		<rd:ColumnSpacing>0.5in</rd:ColumnSpacing>
	</rd:InitialDimensions>
	<rd:InitialDimensions>
		<rd:UnitType>Cm</rd:UnitType>
		<rd:Width>16cm</rd:Width>
		<rd:Height>5cm</rd:Height>
		<rd:LeftMargin>2.5cm</rd:LeftMargin>
		<rd:RightMargin>2.5cm</rd:RightMargin>
		<rd:TopMargin>2.5cm</rd:TopMargin>
		<rd:BottomMargin>2.5cm</rd:BottomMargin>
		<rd:GridSpacing>0.25cm</rd:GridSpacing>
		<rd:PageWidth>21cm</rd:PageWidth>
		<rd:PageHeight>29.7cm</rd:PageHeight>
		<rd:ColumnSpacing>1cm</rd:ColumnSpacing>
	</rd:InitialDimensions>
</Report>
ReportDefinition.cs 的定义。。。。
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition", IsNullable=false)]
    public partial class Report {
        
        private object[] itemsField;
        
        private ItemsChoiceType37[] itemsElementNameField;
        
        private System.Xml.XmlAttribute[] anyAttrField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyElementAttribute()]
        [System.Xml.Serialization.XmlElementAttribute("Author", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("AutoRefresh", typeof(uint))]
        [System.Xml.Serialization.XmlElementAttribute("Body", typeof(BodyType))]
        [System.Xml.Serialization.XmlElementAttribute("BottomMargin", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("Classes", typeof(ClassesType))]
        [System.Xml.Serialization.XmlElementAttribute("Code", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("CodeModules", typeof(CodeModulesType))]
        [System.Xml.Serialization.XmlElementAttribute("CustomProperties", typeof(CustomPropertiesType))]
        [System.Xml.Serialization.XmlElementAttribute("DataElementName", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DataElementStyle", typeof(ReportDataElementStyle))]
        [System.Xml.Serialization.XmlElementAttribute("DataSchema", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("DataSets", typeof(DataSetsType))]
        [System.Xml.Serialization.XmlElementAttribute("DataSources", typeof(DataSourcesType))]
        [System.Xml.Serialization.XmlElementAttribute("DataTransform", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("Description", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("EmbeddedImages", typeof(EmbeddedImagesType))]
        [System.Xml.Serialization.XmlElementAttribute("InteractiveHeight", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("InteractiveWidth", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("Language", typeof(string))]
        [System.Xml.Serialization.XmlElementAttribute("LeftMargin", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("PageFooter", typeof(PageHeaderFooterType))]
        [System.Xml.Serialization.XmlElementAttribute("PageHeader", typeof(PageHeaderFooterType))]
        [System.Xml.Serialization.XmlElementAttribute("PageHeight", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("PageWidth", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("ReportParameters", typeof(ReportParametersType))]
        [System.Xml.Serialization.XmlElementAttribute("RightMargin", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("TopMargin", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlElementAttribute("Width", typeof(string), DataType="normalizedString")]
        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
        public object[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public ItemsChoiceType37[] ItemsElementName {
            get {
                return this.itemsElementNameField;
            }
            set {
                this.itemsElementNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyAttributeAttribute()]
        public System.Xml.XmlAttribute[] AnyAttr {
            get {
                return this.anyAttrField;
            }
            set {
                this.anyAttrField = value;
            }
        }
    }
原文地址:https://www.cnblogs.com/chinaniit/p/1545528.html