/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty1 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty2 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty3 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.viewDataSource1 = new DevExpress.Persistent.Base.ReportsV2.ViewDataSource(); this.PageHeader = new DevExpress.XtraReports.UI.PageHeaderBand(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.MasterOid = new DevExpress.XtraReports.Parameters.Parameter(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel3, this.xrLabel2 }); this.Detail.HeightF = 39.58333F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // xrLabel2 // this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Number") }); this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(142.2916F, 6.583341F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel2.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel2.Text = "xrLabel2"; // // TopMargin // this.TopMargin.HeightF = 100F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // BottomMargin // this.BottomMargin.HeightF = 100F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // viewDataSource1 // this.viewDataSource1.Name = "viewDataSource1"; this.viewDataSource1.ObjectTypeName = "DevExpress.Persistent.BaseImpl.PhoneNumber"; viewProperty1.DisplayName = "Number"; viewProperty1.Expression = "[Number]"; viewProperty2.DisplayName = "PartyOid"; viewProperty2.Expression = "[Party.Oid]"; viewProperty3.DisplayName = "PhoneType"; viewProperty3.Expression = "[PhoneType]"; this.viewDataSource1.Properties.AddRange(new DevExpress.Persistent.Base.ReportsV2.ViewProperty[] { viewProperty1, viewProperty2, viewProperty3 }); this.viewDataSource1.Sorting.AddRange(new DevExpress.Xpo.SortProperty[] { new DevExpress.Xpo.SortProperty("[PhoneType]", DevExpress.Xpo.DB.SortingDirection.Ascending) }); this.viewDataSource1.TopReturnedRecords = 0; // // PageHeader // this.PageHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel1 }); this.PageHeader.HeightF = 36.45833F; this.PageHeader.Name = "PageHeader"; // // xrLabel1 // this.xrLabel1.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold); this.xrLabel1.ForeColor = System.Drawing.Color.Black; this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(161.4583F, 27.16667F); this.xrLabel1.StylePriority.UseFont = false; this.xrLabel1.StylePriority.UseForeColor = false; this.xrLabel1.Text = "Phone Numbers:"; // // MasterOid // this.MasterOid.Description = "Parameter1"; this.MasterOid.Name = "MasterOid"; this.MasterOid.Visible = false; // // xrLabel3 // this.xrLabel3.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold); this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(31.87498F, 6.583341F); this.xrLabel3.Multiline = true; this.xrLabel3.Name = "xrLabel3"; this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel3.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel3.StylePriority.UseFont = false; this.xrLabel3.Text = "[PhoneType]"; // // PhoneNumberReportSubreportMappedToViewDataSource // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.PageHeader }); this.ComponentStorage.Add(this.viewDataSource1); this.DataSource = this.viewDataSource1; this.FilterString = "[PartyOid] = ?MasterOid"; this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] { this.MasterOid }); this.Version = "14.1"; ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty1 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty2 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.viewDataSource1 = new DevExpress.Persistent.Base.ReportsV2.ViewDataSource(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel2, this.xrLabel1}); this.Detail.HeightF = 100F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // TopMargin // this.TopMargin.HeightF = 100F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // BottomMargin // this.BottomMargin.HeightF = 100F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // xrLabel1 // this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Vorname")}); this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(33.33333F, 9.999996F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel1.Text = "xrLabel1"; // // viewDataSource1 // this.viewDataSource1.Name = "viewDataSource1"; this.viewDataSource1.ObjectTypeName = "ReportsV1.Module.BusinessObjects.Person"; viewProperty1.DisplayName = "Vorname"; viewProperty1.Expression = "[FirstName]"; viewProperty2.DisplayName = "Anzahl"; viewProperty2.Expression = "[FirstName] + \' \' + [LastName]"; this.viewDataSource1.Properties.AddRange(new DevExpress.Persistent.Base.ReportsV2.ViewProperty[] { viewProperty1, viewProperty2}); this.viewDataSource1.TopReturnedRecords = 0; // // xrLabel2 // this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "Anzahl")}); this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(61.80556F, 45.44445F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F); this.xrLabel2.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel2.Text = "xrLabel2"; // // ViewDataSourceReport // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin}); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.viewDataSource1}); this.DataSource = this.viewDataSource1; this.Version = "15.1"; ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty1 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty2 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.viewDataSource1 = new DevExpress.Persistent.Base.ReportsV2.ViewDataSource(); ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel3, this.xrLabel4, this.xrLabel2, this.xrLabel1 }); this.Detail.HeightF = 79.16666F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.SortFields.AddRange(new DevExpress.XtraReports.UI.GroupField[] { new DevExpress.XtraReports.UI.GroupField("Name", DevExpress.XtraReports.UI.XRColumnSortOrder.Ascending) }); this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // xrLabel3 // this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(10.00004F, 44.74999F); this.xrLabel3.Name = "xrLabel3"; this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel3.SizeF = new System.Drawing.SizeF(278.125F, 23F); this.xrLabel3.Text = "Year of birth"; // // xrLabel4 // this.xrLabel4.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[YearOfBirth]") }); this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(311.4584F, 44.74999F); this.xrLabel4.Name = "xrLabel4"; this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel4.SizeF = new System.Drawing.SizeF(328.5417F, 23F); this.xrLabel4.Text = "xrLabel4"; // // xrLabel2 // this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 10.00001F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel2.SizeF = new System.Drawing.SizeF(278.125F, 23F); this.xrLabel2.Text = "Name"; // // xrLabel1 // this.xrLabel1.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Name]") }); this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(311.4583F, 10.00001F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(328.5417F, 23F); this.xrLabel1.Text = "xrLabel1"; // // TopMargin // this.TopMargin.HeightF = 100F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // BottomMargin // this.BottomMargin.HeightF = 100F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // viewDataSource1 // this.viewDataSource1.Name = "viewDataSource1"; this.viewDataSource1.ObjectTypeName = "ReportV2Demo.Module.BusinessObjects.Contact"; viewProperty1.DisplayName = "Name"; viewProperty1.Expression = "Concat([FirstName],\' \',[LastName])"; viewProperty2.DisplayName = "YearOfBirth"; viewProperty2.Expression = "GetYear([Birthday])"; this.viewDataSource1.Properties.AddRange(new DevExpress.Persistent.Base.ReportsV2.ViewProperty[] { viewProperty1, viewProperty2 }); this.viewDataSource1.TopReturnedRecords = 0; // // XtraReportView // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin }); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.viewDataSource1 }); this.DataSource = this.viewDataSource1; this.DisplayName = "Report with ViewDataSource"; this.Version = "17.2"; ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty1 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty2 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty3 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.xrLine1 = new DevExpress.XtraReports.UI.XRLine(); this.xrSubreport1 = new DevExpress.XtraReports.UI.XRSubreport(); this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); this.viewDataSource1 = new DevExpress.Persistent.Base.ReportsV2.ViewDataSource(); ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLine1, this.xrSubreport1, this.xrLabel4, this.xrLabel3, this.xrLabel2, this.xrLabel1 }); this.Detail.HeightF = 151.0417F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // xrLine1 // this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); this.xrLine1.Name = "xrLine1"; this.xrLine1.SizeF = new System.Drawing.SizeF(650F, 10.08334F); // // xrSubreport1 // this.xrSubreport1.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 99.95833F); this.xrSubreport1.Name = "xrSubreport1"; this.xrSubreport1.ReportSource = new ReportV2Demo.Module.PredefinedReadonlyReports.PhoneNumberReportSubreportMappedToViewDataSource(); this.xrSubreport1.ParameterBindings.Add(new DevExpress.XtraReports.UI.ParameterBinding("MasterOid", null, "Oid")); this.xrSubreport1.SizeF = new System.Drawing.SizeF(100F, 23F); // // xrLabel4 // this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 63.49999F); this.xrLabel4.Name = "xrLabel4"; this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel4.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel4.Text = "Last Name"; // // xrLabel3 // this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 27.70834F); this.xrLabel3.Multiline = true; this.xrLabel3.Name = "xrLabel3"; this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel3.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel3.Text = "First Name\r\n"; // // xrLabel2 // this.xrLabel2.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[LastName]") }); this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(148.9583F, 63.49999F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel2.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel2.Text = "xrLabel2"; // // xrLabel1 // this.xrLabel1.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[FirstName]") }); this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(148.9583F, 27.70834F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel1.Text = "xrLabel1"; // // TopMargin // this.TopMargin.HeightF = 100F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // BottomMargin // this.BottomMargin.HeightF = 100F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // ReportHeader // this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel5 }); this.ReportHeader.HeightF = 54.16667F; this.ReportHeader.Name = "ReportHeader"; // // xrLabel5 // this.xrLabel5.Font = new System.Drawing.Font("Times New Roman", 25F); this.xrLabel5.ForeColor = System.Drawing.Color.Maroon; this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 10.00001F); this.xrLabel5.Name = "xrLabel5"; this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel5.SizeF = new System.Drawing.SizeF(350F, 37.58334F); this.xrLabel5.StylePriority.UseFont = false; this.xrLabel5.StylePriority.UseForeColor = false; this.xrLabel5.Text = "Contacts"; // // viewDataSource1 // this.viewDataSource1.Name = "viewDataSource1"; this.viewDataSource1.ObjectTypeName = "ReportV2Demo.Module.BusinessObjects.Contact"; viewProperty1.DisplayName = "FirstName"; viewProperty1.Expression = "[FirstName]"; viewProperty2.DisplayName = "LastName"; viewProperty2.Expression = "[LastName]"; viewProperty3.DisplayName = "Oid"; viewProperty3.Expression = "[Oid]"; this.viewDataSource1.Properties.AddRange(new DevExpress.Persistent.Base.ReportsV2.ViewProperty[] { viewProperty1, viewProperty2, viewProperty3 }); this.viewDataSource1.Sorting.AddRange(new DevExpress.Xpo.SortProperty[] { new DevExpress.Xpo.SortProperty("[LastName]", DevExpress.Xpo.DB.SortingDirection.Ascending) }); this.viewDataSource1.TopReturnedRecords = 0; // // ContactReportWithSubreportMappedToViewDataSource // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader }); this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { this.viewDataSource1 }); this.DataSource = this.viewDataSource1; this.DisplayName = "Contact report with subreport mapped to ViewDataSource"; this.Version = "17.2"; ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty1 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); DevExpress.Persistent.Base.ReportsV2.ViewProperty viewProperty2 = new DevExpress.Persistent.Base.ReportsV2.ViewProperty(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); this.viewDataSource1 = new DevExpress.Persistent.Base.ReportsV2.ViewDataSource(); this.xrSubreport1 = new DevExpress.XtraReports.UI.XRSubreport(); ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail // this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrSubreport1, this.xrLabel3, this.xrLabel1 }); this.Detail.HeightF = 111.875F; this.Detail.Name = "Detail"; this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // xrLabel3 // this.xrLabel3.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold); this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 10.00001F); this.xrLabel3.Multiline = true; this.xrLabel3.Name = "xrLabel3"; this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel3.SizeF = new System.Drawing.SizeF(100F, 23F); this.xrLabel3.StylePriority.UseFont = false; this.xrLabel3.Text = "Full Name:\r\n"; // // xrLabel1 // this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "FullName") }); this.xrLabel1.Font = new System.Drawing.Font("Times New Roman", 12F); this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(110F, 10.00001F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(452.0834F, 23F); this.xrLabel1.StylePriority.UseFont = false; // // TopMargin // this.TopMargin.HeightF = 100F; this.TopMargin.Name = "TopMargin"; this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // BottomMargin // this.BottomMargin.HeightF = 100F; this.BottomMargin.Name = "BottomMargin"; this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; // // ReportHeader // this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel5 }); this.ReportHeader.HeightF = 68.75F; this.ReportHeader.Name = "ReportHeader"; // // xrLabel5 // this.xrLabel5.Font = new System.Drawing.Font("Times New Roman", 25F); this.xrLabel5.ForeColor = System.Drawing.Color.Maroon; this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 10.00001F); this.xrLabel5.Name = "xrLabel5"; this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel5.SizeF = new System.Drawing.SizeF(350F, 37.58334F); this.xrLabel5.StylePriority.UseFont = false; this.xrLabel5.StylePriority.UseForeColor = false; this.xrLabel5.Text = "Contacts"; // // viewDataSource1 // this.viewDataSource1.Name = "viewDataSource1"; this.viewDataSource1.ObjectTypeName = "DevExpress.Persistent.BaseImpl.Person"; viewProperty1.DisplayName = "FullName"; viewProperty1.Expression = "[FirstName] + \' \' + [LastName]"; viewProperty2.DisplayName = "Oid"; viewProperty2.Expression = "[Oid]"; this.viewDataSource1.Properties.AddRange(new DevExpress.Persistent.Base.ReportsV2.ViewProperty[] { viewProperty1, viewProperty2 }); this.viewDataSource1.Sorting.AddRange(new DevExpress.Xpo.SortProperty[] { new DevExpress.Xpo.SortProperty("[FullName]", DevExpress.Xpo.DB.SortingDirection.Ascending) }); this.viewDataSource1.TopReturnedRecords = 0; // // xrSubreport1 // this.xrSubreport1.LocationFloat = new DevExpress.Utils.PointFloat(10.00001F, 47.87499F); this.xrSubreport1.Name = "xrSubreport1"; this.xrSubreport1.ReportSource = new SubReportExample.Module.PhoneNumberReportSubreportMappedToViewDataSource(); this.xrSubreport1.SizeF = new System.Drawing.SizeF(458.3333F, 41.08337F); this.xrSubreport1.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.xrSubreport1_BeforePrint); // // ContactReportWithSubreportMappedToViewDataSource // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader }); this.ComponentStorage.Add(this.viewDataSource1); this.DataSource = this.viewDataSource1; this.DisplayName = "Contact report with subreport mapped to ViewDataSource"; this.Version = "14.1"; ((System.ComponentModel.ISupportInitialize)(this.viewDataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }