private void subReport1_ItemDataBound(object sender, EventArgs e) { Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender; Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport; subReport.Visible = report.ChildElements.Find("detail", true).Length > 0; Telerik.Reporting.DetailSection detail = new DetailSection(); detail.Visible = subReport.Visible; }
private void subReport1_ItemDataBound(object sender, EventArgs e) { bool vis = true; Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender; Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport; if (ReportParameters["Estadistica"].Value.ToString().ToLower() == "false") { vis = false; } else { vis = report.ChildElements.Find("detail", true).Length > 0; } subReport.Visible = vis; Telerik.Reporting.DetailSection detail = new DetailSection(); detail.Visible = subReport.Visible; }
public void GeneratePDF(string FileName, bool OpenWhenDone = true) { renderEngine = new RenderToPDF(SelectedPageType, SelectedOrientation); rep = new genericReport(); yOffset = TopMargin; xOffset = LeftMargin; object previousRow = null; bool pageBreak = true; pagenumber = 0; foreach (object row in DataSource) { if (pageBreak || IsPageBreakNeeded()) { NewPage(previousRow, row); pageBreak = false; } //GroupFooters Footers(previousRow, row); //GroupHeaders foreach (ReportGroup reportGroup in ReportGroups) { if (reportGroup.GroupingHasChanged(row)) { if ((reportGroup.StartOnNewPage && yOffset > TopMargin) || IsPageBreakNeeded(reportGroup.HeaderSection.Height)) { NewPage(previousRow, row); } double growthForThisSection = reportGroup.HeaderSection.Render(row, renderEngine, xOffset, yOffset, DefaultStyle); yOffset += reportGroup.HeaderSection.Height + growthForThisSection; reportGroup.FooterSection.aggregatedValues = null; } } //Alternating detail color if (AlternatingRowsPrimaryColor != null && AlternatingRowsSecondaryColor != null) { Brush brush = applyAlternateColor ? new SolidBrush(AlternatingRowsPrimaryColor) : new SolidBrush(AlternatingRowsSecondaryColor); renderEngine.DrawRectangle(null, brush, LeftMargin, yOffset, PrintableAreaWidth, DetailSection.Height); applyAlternateColor = !applyAlternateColor; } if (IsPageBreakNeeded(DetailSection.Height)) { NewPage(previousRow, row); } double growthForDetailSection = DetailSection.Render(row, renderEngine, xOffset, yOffset, DefaultStyle); yOffset += DetailSection.Height + growthForDetailSection; if (PageFooter != null) { PageFooter.calculateAggregates(row); } foreach (ReportGroup reportGroup in ReportGroups) { reportGroup.FooterSection.calculateAggregates(row); reportGroup.previousRow = row; } previousRow = row; } if (previousRow != null) { Footers(previousRow, null); if (PageFooter != null) { double y = PageLength - (PageFooter != null ? PageFooter.Height : 0) - (ReportHeader != null ? ReportHeader.Height : 0) - BottomMargin; if (y < yOffset) { renderEngine.NewPage(); yOffset = TopMargin; pagenumber++; } double growth = PageFooter.Render(previousRow, renderEngine, xOffset, y, DefaultStyle); yOffset += PageFooter.Height + growth; } if (ReportFooter != null) { double y = PageLength - ReportHeader.Height; double growth = ReportFooter.Render(previousRow, renderEngine, xOffset, y, DefaultStyle); yOffset += PageFooter.Height + growth; } } renderEngine.Save(FileName); if (OpenWhenDone) { Process.Start(FileName); } }
/// <summary> /// Required method for Telerik Reporting designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.Reporting.Drawing.FormattingRule formattingRule7 = new Telerik.Reporting.Drawing.FormattingRule(); Telerik.Reporting.Drawing.FormattingRule formattingRule8 = new Telerik.Reporting.Drawing.FormattingRule(); Telerik.Reporting.Drawing.FormattingRule formattingRule9 = new Telerik.Reporting.Drawing.FormattingRule(); Telerik.Reporting.Drawing.FormattingRule formattingRule10 = new Telerik.Reporting.Drawing.FormattingRule(); Telerik.Reporting.Drawing.FormattingRule formattingRule11 = new Telerik.Reporting.Drawing.FormattingRule(); Telerik.Reporting.Drawing.FormattingRule formattingRule12 = new Telerik.Reporting.Drawing.FormattingRule(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductTagReport)); this.detail = new Telerik.Reporting.DetailSection(); this.panel1 = new Telerik.Reporting.Panel(); this.txtName = new Telerik.Reporting.TextBox(); this.txtTitle = new Telerik.Reporting.TextBox(); this.textBox5 = new Telerik.Reporting.TextBox(); this.textBox6 = new Telerik.Reporting.TextBox(); this.barcode1 = new Telerik.Reporting.Barcode(); this.pictureBox1 = new Telerik.Reporting.PictureBox(); this.shape1 = new Telerik.Reporting.Shape(); this.panel3 = new Telerik.Reporting.Panel(); this.textBox2 = new Telerik.Reporting.TextBox(); this.textBox3 = new Telerik.Reporting.TextBox(); this.textBox4 = new Telerik.Reporting.TextBox(); this.textBox7 = new Telerik.Reporting.TextBox(); this.textBox8 = new Telerik.Reporting.TextBox(); this.textBox9 = new Telerik.Reporting.TextBox(); this.textBox10 = new Telerik.Reporting.TextBox(); this.textBox11 = new Telerik.Reporting.TextBox(); this.textBox12 = new Telerik.Reporting.TextBox(); this.shape2 = new Telerik.Reporting.Shape(); this.sqlDataSource1 = new Telerik.Reporting.SqlDataSource(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // detail // this.detail.ColumnCount = 3; this.detail.ColumnSpacing = new Telerik.Reporting.Drawing.Unit(1.2999999523162842, Telerik.Reporting.Drawing.UnitType.Cm); this.detail.Height = new Telerik.Reporting.Drawing.Unit(8.68783187866211, Telerik.Reporting.Drawing.UnitType.Cm); this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.panel1}); this.detail.Name = "detail"; // // panel1 // this.panel1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.txtName, this.txtTitle, this.textBox5, this.textBox6, this.barcode1, this.pictureBox1, this.shape1, this.panel3}); this.panel1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.013781229965388775, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.panel1.Name = "panel1"; this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(55.299999237060547, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(83, Telerik.Reporting.Drawing.UnitType.Mm)); this.panel1.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(246)))), ((int)(((byte)(255))))); this.panel1.Style.BackgroundImage.Repeat = Telerik.Reporting.Drawing.BackgroundRepeat.NoRepeat; this.panel1.Style.BorderColor.Bottom = System.Drawing.Color.DarkGray; this.panel1.Style.BorderColor.Default = System.Drawing.Color.Gainsboro; this.panel1.Style.BorderColor.Left = System.Drawing.Color.DarkGray; this.panel1.Style.BorderColor.Right = System.Drawing.Color.DarkGray; this.panel1.Style.BorderColor.Top = System.Drawing.Color.DarkGray; this.panel1.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid; this.panel1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Dotted; this.panel1.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid; this.panel1.Style.BorderStyle.Right = Telerik.Reporting.Drawing.BorderType.Solid; // // txtName // this.txtName.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.065000124275684357, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(38.359786987304688, Telerik.Reporting.Drawing.UnitType.Mm)); this.txtName.Name = "txtName"; this.txtName.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.3650002479553223, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.46402105689048767, Telerik.Reporting.Drawing.UnitType.Cm)); this.txtName.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(87)))), ((int)(((byte)(181))))); this.txtName.Style.Font.Bold = true; this.txtName.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; this.txtName.TextWrap = false; this.txtName.Value = "=Fields.ProductName"; // // txtTitle // this.txtTitle.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.065000124275684357, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(4.4000000953674316, Telerik.Reporting.Drawing.UnitType.Cm)); this.txtTitle.Name = "txtTitle"; this.txtTitle.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.3650002479553223, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.43683755397796631, Telerik.Reporting.Drawing.UnitType.Cm)); this.txtTitle.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(87)))), ((int)(((byte)(181))))); this.txtTitle.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10, Telerik.Reporting.Drawing.UnitType.Point); this.txtTitle.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; this.txtTitle.Value = "= \"(\" + \" \" + Fields.ProductSubName + \" \" + \")\""; // // textBox5 // this.textBox5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.349216103553772, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(9.8941802978515625, Telerik.Reporting.Drawing.UnitType.Mm)); this.textBox5.Name = "textBox5"; this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(20.103809356689453, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(5.07936429977417, Telerik.Reporting.Drawing.UnitType.Mm)); this.textBox5.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(87)))), ((int)(((byte)(181))))); this.textBox5.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(8, Telerik.Reporting.Drawing.UnitType.Point); this.textBox5.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.textBox5.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom; this.textBox5.Value = "Product No."; // // textBox6 // this.textBox6.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(21.455028533935547, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(9.8941802978515625, Telerik.Reporting.Drawing.UnitType.Mm)); this.textBox6.Name = "textBox6"; this.textBox6.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(19.310161590576172, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(5.07936429977417, Telerik.Reporting.Drawing.UnitType.Mm)); this.textBox6.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(87)))), ((int)(((byte)(181))))); this.textBox6.Style.Font.Bold = true; this.textBox6.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(8, Telerik.Reporting.Drawing.UnitType.Point); this.textBox6.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox6.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom; this.textBox6.Value = "=Fields.ProductNumber"; // // barcode1 // this.barcode1.Angle = 270; this.barcode1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(42.037044525146484, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(1.4814810752868652, Telerik.Reporting.Drawing.UnitType.Mm)); this.barcode1.Name = "barcode1"; this.barcode1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(12.396825790405273, Telerik.Reporting.Drawing.UnitType.Mm), new Telerik.Reporting.Drawing.Unit(33.864429473876953, Telerik.Reporting.Drawing.UnitType.Mm)); this.barcode1.Stretch = true; this.barcode1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(8, Telerik.Reporting.Drawing.UnitType.Point); this.barcode1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.barcode1.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom; this.barcode1.Symbology = Telerik.Reporting.Barcode.SymbologyType.EAN128; this.barcode1.Value = "=Fields.ProductNumber"; // // pictureBox1 // this.pictureBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.55820292234420776, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.550464391708374, Telerik.Reporting.Drawing.UnitType.Cm)); this.pictureBox1.MimeType = ""; this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(3.095238208770752, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.9576719999313355, Telerik.Reporting.Drawing.UnitType.Cm)); this.pictureBox1.Sizing = Telerik.Reporting.Drawing.ImageSizeMode.ScaleProportional; this.pictureBox1.Style.BackgroundColor = System.Drawing.Color.White; this.pictureBox1.Style.BorderColor.Default = System.Drawing.Color.Silver; this.pictureBox1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; this.pictureBox1.Style.Visible = true; this.pictureBox1.Value = "=Fields.LargePhoto"; // // shape1 // this.shape1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.24074171483516693, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.12169308215379715, Telerik.Reporting.Drawing.UnitType.Cm)); this.shape1.Name = "shape1"; this.shape1.ShapeType = new Telerik.Reporting.Drawing.Shapes.EllipseShape(0); this.shape1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.50264549255371094, Telerik.Reporting.Drawing.UnitType.Cm)); this.shape1.Style.BackgroundColor = System.Drawing.Color.White; this.shape1.Style.Color = System.Drawing.Color.DimGray; this.shape1.Style.LineStyle = Telerik.Reporting.Drawing.LineStyle.Dotted; this.shape1.Style.Padding.Bottom = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Pixel); this.shape1.Style.Padding.Left = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Pixel); this.shape1.Style.Padding.Right = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Pixel); this.shape1.Style.Padding.Top = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Pixel); // // panel3 // this.panel3.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.textBox2, this.textBox3, this.textBox4, this.textBox7, this.textBox8, this.textBox9, this.textBox10, this.textBox11, this.textBox12, this.shape2}); this.panel3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.26043441891670227, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(5.1030745506286621, Telerik.Reporting.Drawing.UnitType.Cm)); this.panel3.Name = "panel3"; this.panel3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.0506772994995117, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(3.0499999523162842, Telerik.Reporting.Drawing.UnitType.Cm)); this.panel3.Style.BackgroundColor = System.Drawing.Color.White; this.panel3.Style.BorderColor.Default = System.Drawing.Color.Silver; this.panel3.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; // // textBox2 // this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.041226863861083984, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.038164455443620682, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox2.Name = "textBox2"; this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9335449934005737, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.50264549255371094, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox2.Style.Font.Bold = true; this.textBox2.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox2.Value = "List Price:"; // // textBox3 // this.textBox3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.1059202179312706, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.66284912824630737, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox3.Name = "textBox3"; this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9335449934005737, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox3.Style.Font.Bold = true; this.textBox3.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox3.Value = "Size:"; // // textBox4 // this.textBox4.Format = "{0:C2}"; this.textBox4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.1045656204223633, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.0995711162686348, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox4.Name = "textBox4"; this.textBox4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999999523162842, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox4.Style.Color = System.Drawing.Color.Red; this.textBox4.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox4.Value = "=Fields.ListPrice"; // // textBox7 // this.textBox7.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.1045656204223633, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.66284912824630737, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox7.Name = "textBox7"; this.textBox7.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999999523162842, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox7.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox7.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox7.Value = "=IsNull(Fields.Size, \'N/A\') + \" \" + IsNull(Fields.SizeUnitMeasureCode, \'\')"; // // textBox8 // this.textBox8.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.10582010447978973, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.2261271476745606, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox8.Name = "textBox8"; this.textBox8.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9335449934005737, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox8.Style.Font.Bold = true; this.textBox8.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox8.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox8.Value = "Weight:"; // // textBox9 // this.textBox9.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.1045658588409424, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.2261271476745606, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox9.Name = "textBox9"; this.textBox9.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999999523162842, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox9.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox9.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox9.Value = "=IsNull(Fields.Weight, \'N/A\') + \" \" + IsNull(Fields.WeightUnitMeasureCode, \'\')"; // // textBox10 // this.textBox10.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.1059202179312706, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.789405107498169, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox10.Name = "textBox10"; this.textBox10.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9335449934005737, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.23999999463558197, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox10.Style.Font.Bold = true; this.textBox10.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox10.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox10.Value = "Color:"; // // textBox11 // this.textBox11.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.10582010447978973, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.4622066020965576, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox11.Name = "textBox11"; this.textBox11.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9335449934005737, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox11.Style.Font.Bold = true; this.textBox11.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox11.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox11.Value = "Vendor:"; // // textBox12 // this.textBox12.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.1045656204223633, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.4622068405151367, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox12.CanGrow = false; this.textBox12.Name = "textBox12"; this.textBox12.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999999523162842, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); this.textBox12.Style.Font.Bold = false; this.textBox12.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; this.textBox12.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.textBox12.Value = "=Fields.Vendor"; // // shape2 // formattingRule7.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "Red")}); formattingRule7.StopIfTrue = true; formattingRule7.Style.BackgroundColor = System.Drawing.Color.Red; formattingRule8.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "Blue")}); formattingRule8.StopIfTrue = true; formattingRule8.Style.BackgroundColor = System.Drawing.Color.Blue; formattingRule9.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "Black")}); formattingRule9.StopIfTrue = true; formattingRule9.Style.BackgroundColor = System.Drawing.Color.Black; formattingRule10.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "Silver")}); formattingRule10.StopIfTrue = true; formattingRule10.Style.BackgroundColor = System.Drawing.Color.Silver; formattingRule11.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "Yellow")}); formattingRule11.StopIfTrue = true; formattingRule11.Style.BackgroundColor = System.Drawing.Color.Yellow; formattingRule12.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=ISNULL(Fields.Color, \'\')", Telerik.Reporting.Data.FilterOperator.Equal, "White")}); formattingRule12.StopIfTrue = true; formattingRule12.Style.BackgroundColor = System.Drawing.Color.White; this.shape2.ConditionalFormatting.AddRange(new Telerik.Reporting.Drawing.FormattingRule[] { formattingRule7, formattingRule8, formattingRule9, formattingRule10, formattingRule11, formattingRule12}); this.shape2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.82867282629013062, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.70457834005355835, Telerik.Reporting.Drawing.UnitType.Inch)); this.shape2.Name = "shape2"; this.shape2.ShapeType = new Telerik.Reporting.Drawing.Shapes.EllipseShape(0); this.shape2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.23958000540733337, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2399999350309372, Telerik.Reporting.Drawing.UnitType.Inch)); this.shape2.Style.Color = System.Drawing.Color.Transparent; this.shape2.Style.LineWidth = new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Point); this.shape2.Style.Padding.Bottom = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Point); this.shape2.Style.Padding.Left = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Point); this.shape2.Style.Padding.Right = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Point); this.shape2.Style.Padding.Top = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Point); this.shape2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; // // sqlDataSource1 // this.sqlDataSource1.ConnectionString = "Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString"; this.sqlDataSource1.SelectCommand = resources.GetString("sqlDataSource1.SelectCommand"); // // ProductTagReport // this.DataSource = this.sqlDataSource1; this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.detail}); this.PageSettings.Landscape = false; this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(0.800000011920929, Telerik.Reporting.Drawing.UnitType.Cm); this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Cm); this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Cm); this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(0.800000011920929, Telerik.Reporting.Drawing.UnitType.Cm); this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter; this.Style.BackgroundColor = System.Drawing.Color.White; this.Style.LineWidth = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Pixel); this.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; this.Style.Visible = true; this.Width = new Telerik.Reporting.Drawing.Unit(5.5999999046325684, Telerik.Reporting.Drawing.UnitType.Cm); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <summary> /// Required method for telerik Reporting designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SalesOrderDetails)); Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter(); Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule(); Telerik.Reporting.Drawing.StyleRule styleRule2 = new Telerik.Reporting.Drawing.StyleRule(); Telerik.Reporting.Drawing.StyleRule styleRule3 = new Telerik.Reporting.Drawing.StyleRule(); Telerik.Reporting.Drawing.StyleRule styleRule4 = new Telerik.Reporting.Drawing.StyleRule(); this.labelsGroupHeader = new Telerik.Reporting.GroupHeaderSection(); this.panel1 = new Telerik.Reporting.Panel(); this.productNumberCaptionTextBox = new Telerik.Reporting.TextBox(); this.nameCaptionTextBox = new Telerik.Reporting.TextBox(); this.orderQtyCaptionTextBox = new Telerik.Reporting.TextBox(); this.unitPriceCaptionTextBox = new Telerik.Reporting.TextBox(); this.lineTotalCaptionTextBox = new Telerik.Reporting.TextBox(); this.labelsGroupFooter = new Telerik.Reporting.GroupFooterSection(); this.textBox1 = new Telerik.Reporting.TextBox(); this.textBox2 = new Telerik.Reporting.TextBox(); this.labelsGroup = new Telerik.Reporting.Group(); this.detail = new Telerik.Reporting.DetailSection(); this.productNumberDataTextBox = new Telerik.Reporting.TextBox(); this.nameDataTextBox = new Telerik.Reporting.TextBox(); this.orderQtyDataTextBox = new Telerik.Reporting.TextBox(); this.unitPriceDataTextBox = new Telerik.Reporting.TextBox(); this.lineTotalDataTextBox = new Telerik.Reporting.TextBox(); this.sqlDataSource1 = new Telerik.Reporting.SqlDataSource(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // labelsGroupHeader // this.labelsGroupHeader.Height = new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch); this.labelsGroupHeader.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.panel1}); this.labelsGroupHeader.Name = "labelsGroupHeader"; this.labelsGroupHeader.PrintOnEveryPage = true; // // panel1 // this.panel1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.productNumberCaptionTextBox, this.nameCaptionTextBox, this.orderQtyCaptionTextBox, this.unitPriceCaptionTextBox, this.lineTotalCaptionTextBox}); this.panel1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.panel1.Name = "panel1"; this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.5, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.panel1.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(245)))), ((int)(((byte)(255))))); // // productNumberCaptionTextBox // this.productNumberCaptionTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(3.9378803194267675E-05, Telerik.Reporting.Drawing.UnitType.Inch)); this.productNumberCaptionTextBox.Name = "productNumberCaptionTextBox"; this.productNumberCaptionTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.3000000715255737, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.productNumberCaptionTextBox.Style.Font.Bold = true; this.productNumberCaptionTextBox.StyleName = "Caption"; this.productNumberCaptionTextBox.Value = "ProductNumber"; // // nameCaptionTextBox // this.nameCaptionTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.3000787496566773, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.nameCaptionTextBox.Name = "nameCaptionTextBox"; this.nameCaptionTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999212741851807, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.nameCaptionTextBox.Style.Font.Bold = true; this.nameCaptionTextBox.StyleName = "Caption"; this.nameCaptionTextBox.Value = "Name"; // // orderQtyCaptionTextBox // this.orderQtyCaptionTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.100039005279541, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(-1.2417634032146907E-08, Telerik.Reporting.Drawing.UnitType.Inch)); this.orderQtyCaptionTextBox.Name = "orderQtyCaptionTextBox"; this.orderQtyCaptionTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.91025900840759277, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.orderQtyCaptionTextBox.Style.Font.Bold = true; this.orderQtyCaptionTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.orderQtyCaptionTextBox.StyleName = "Caption"; this.orderQtyCaptionTextBox.Value = "Quantity"; // // unitPriceCaptionTextBox // this.unitPriceCaptionTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.0103774070739746, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.unitPriceCaptionTextBox.Name = "unitPriceCaptionTextBox"; this.unitPriceCaptionTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.222798228263855, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.unitPriceCaptionTextBox.Style.Font.Bold = true; this.unitPriceCaptionTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.unitPriceCaptionTextBox.StyleName = "Caption"; this.unitPriceCaptionTextBox.Value = "Unit Price"; // // lineTotalCaptionTextBox // this.lineTotalCaptionTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(6.2332539558410645, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.lineTotalCaptionTextBox.Name = "lineTotalCaptionTextBox"; this.lineTotalCaptionTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2666666507720947, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.lineTotalCaptionTextBox.Style.Font.Bold = true; this.lineTotalCaptionTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.lineTotalCaptionTextBox.StyleName = "Caption"; this.lineTotalCaptionTextBox.Value = "Line Total"; // // labelsGroupFooter // this.labelsGroupFooter.Height = new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch); this.labelsGroupFooter.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.textBox1, this.textBox2}); this.labelsGroupFooter.Name = "labelsGroupFooter"; this.labelsGroupFooter.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(229)))), ((int)(((byte)(255))))); this.labelsGroupFooter.Style.Visible = true; // // textBox1 // this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.010338306427002, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox1.Name = "textBox1"; this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2228368520736694, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox1.Style.Font.Bold = true; this.textBox1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11, Telerik.Reporting.Drawing.UnitType.Point); this.textBox1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.textBox1.Value = "Total"; // // textBox2 // this.textBox2.Format = "{0:C2}"; this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(6.2332935333251953, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox2.Name = "textBox2"; this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2666668891906738, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.textBox2.Style.Font.Bold = true; this.textBox2.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.textBox2.Value = "=Sum(Fields.LineTotal)"; // // labelsGroup // this.labelsGroup.GroupFooter = this.labelsGroupFooter; this.labelsGroup.GroupHeader = this.labelsGroupHeader; this.labelsGroup.Name = "labelsGroup"; // // detail // this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch); this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.productNumberDataTextBox, this.nameDataTextBox, this.orderQtyDataTextBox, this.unitPriceDataTextBox, this.lineTotalDataTextBox}); this.detail.Name = "detail"; // // productNumberDataTextBox // this.productNumberDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.productNumberDataTextBox.Name = "productNumberDataTextBox"; this.productNumberDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.3000000715255737, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.productNumberDataTextBox.Style.Padding.Left = new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Point); this.productNumberDataTextBox.StyleName = "Data"; this.productNumberDataTextBox.Value = "=Fields.ProductNumber"; // // nameDataTextBox // this.nameDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.3000787496566773, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.nameDataTextBox.Name = "nameDataTextBox"; this.nameDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7999212741851807, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.nameDataTextBox.StyleName = "Data"; this.nameDataTextBox.Value = "=Fields.Name"; // // orderQtyDataTextBox // this.orderQtyDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.10007905960083, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.orderQtyDataTextBox.Name = "orderQtyDataTextBox"; this.orderQtyDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.91018062829971313, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.orderQtyDataTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.orderQtyDataTextBox.StyleName = "Data"; this.orderQtyDataTextBox.Value = "=Fields.OrderQty"; // // unitPriceDataTextBox // this.unitPriceDataTextBox.Format = "{0:C2}"; this.unitPriceDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.010338306427002, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.unitPriceDataTextBox.Name = "unitPriceDataTextBox"; this.unitPriceDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2228771448135376, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.unitPriceDataTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.unitPriceDataTextBox.StyleName = "Data"; this.unitPriceDataTextBox.Value = "=Fields.UnitPrice"; // // lineTotalDataTextBox // this.lineTotalDataTextBox.Format = "{0:C2}"; this.lineTotalDataTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(6.2332539558410645, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.lineTotalDataTextBox.Name = "lineTotalDataTextBox"; this.lineTotalDataTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2666666507720947, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.30000004172325134, Telerik.Reporting.Drawing.UnitType.Inch)); this.lineTotalDataTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; this.lineTotalDataTextBox.StyleName = "Data"; this.lineTotalDataTextBox.Value = "=Fields.LineTotal"; // // sqlDataSource1 // this.sqlDataSource1.ConnectionString = "Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString"; this.sqlDataSource1.Name = "sqlDataSource1"; this.sqlDataSource1.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] { new Telerik.Reporting.SqlDataSourceParameter("@SalesOrderID", System.Data.DbType.Int32, "=Parameters.SaledOrderID.Value")}); this.sqlDataSource1.SelectCommand = resources.GetString("sqlDataSource1.SelectCommand"); // // SalesOrderDetails // this.DataSource = this.sqlDataSource1; this.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=Fields.SalesOrderID", Telerik.Reporting.Data.FilterOperator.Equal, "=Parameters.SaledOrderID.Value")}); this.Groups.AddRange(new Telerik.Reporting.Group[] { this.labelsGroup}); this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { this.labelsGroupHeader, this.labelsGroupFooter, this.detail}); this.PageSettings.Landscape = false; this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(0.25, Telerik.Reporting.Drawing.UnitType.Inch); this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Inch); this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Inch); this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(0.25, Telerik.Reporting.Drawing.UnitType.Inch); this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter; reportParameter1.Name = "SaledOrderID"; reportParameter1.Value = "=43860"; this.ReportParameters.Add(reportParameter1); this.Style.BackgroundColor = System.Drawing.Color.White; styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { new Telerik.Reporting.Drawing.StyleSelector("Title")}); styleRule1.Style.Color = System.Drawing.Color.Black; styleRule1.Style.Font.Bold = true; styleRule1.Style.Font.Italic = false; styleRule1.Style.Font.Name = "Tahoma"; styleRule1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(20, Telerik.Reporting.Drawing.UnitType.Point); styleRule1.Style.Font.Strikeout = false; styleRule1.Style.Font.Underline = false; styleRule2.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { new Telerik.Reporting.Drawing.StyleSelector("Caption")}); styleRule2.Style.Color = System.Drawing.Color.Black; styleRule2.Style.Font.Name = "Tahoma"; styleRule2.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11, Telerik.Reporting.Drawing.UnitType.Point); styleRule2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; styleRule3.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { new Telerik.Reporting.Drawing.StyleSelector("Data")}); styleRule3.Style.Font.Name = "Tahoma"; styleRule3.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11, Telerik.Reporting.Drawing.UnitType.Point); styleRule3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; styleRule4.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { new Telerik.Reporting.Drawing.StyleSelector("PageInfo")}); styleRule4.Style.Font.Name = "Tahoma"; styleRule4.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11, Telerik.Reporting.Drawing.UnitType.Point); styleRule4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] { styleRule1, styleRule2, styleRule3, styleRule4}); this.Width = new Telerik.Reporting.Drawing.Unit(7.5, Telerik.Reporting.Drawing.UnitType.Inch); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }