private void rptDesignChild_ReportStart(object sender, System.EventArgs e) { GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB;Persist Security Info=False"; oleDBDataSource1.SQL = "Select * from Customers Order By Val(CustomerID)"; this.DataSource = oleDBDataSource1; }
private void rptDesignChild_ReportStart(object sender, System.EventArgs e) { GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); oleDBDataSource1.ConnectionString = _resource.GetString("ConnectionString"); oleDBDataSource1.SQL = "Select * from Customers Order By Val(CustomerID)"; this.DataSource = oleDBDataSource1; }
public rpt2DBar() { // Required for ActiveReport designer support. InitializeComponent(); GrapeCity.ActiveReports.Data.OleDBDataSource dS = new GrapeCity.ActiveReports.Data.OleDBDataSource(); dS.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["NwindConnectionString"].ConnectionString; dS.SQL = "SELECT ShipCountry, SUM(Freight) AS Expr1 FROM Orders GROUP BY ShipCountry"; ChartControl.DataSource = dS; }
/// <summary> /// Required method for 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(NwindLabels)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.lblNorthWind = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTraders = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblAddr1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblAddr2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.linSep1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.txtName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); // lblNorthWind resources.ApplyResources(this.lblNorthWind, "lblNorthWind"); this.lblNorthWind.Name = "lblNorthWind"; // lblTraders this.lblTraders.Border.TopColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.lblTraders.Border.TopStyle = GrapeCity.ActiveReports.BorderLineStyle.ThickSolid; resources.ApplyResources(this.lblTraders, "lblTraders"); this.lblTraders.Name = "lblTraders"; // lblAddr1 resources.ApplyResources(this.lblAddr1, "lblAddr1"); this.lblAddr1.Name = "lblAddr1"; // lblAddr2 resources.ApplyResources(this.lblAddr2, "lblAddr2"); this.lblAddr2.Name = "lblAddr2"; // linSep1 resources.ApplyResources(this.linSep1, "linSep1"); this.linSep1.LineWeight = 2F; this.linSep1.Name = "linSep1"; this.linSep1.X1 = 0.0625F; this.linSep1.X2 = 3.1875F; this.linSep1.Y1 = 0.625F; this.linSep1.Y2 = 0.625F; // txtName this.txtName.CanGrow = false; this.txtName.DataField = "CompanyName"; resources.ApplyResources(this.txtName, "txtName"); this.txtName.Name = "txtName"; // txtAddress this.txtAddress.DataField = "Address"; resources.ApplyResources(this.txtAddress, "txtAddress"); this.txtAddress.Name = "txtAddress"; // txtCity this.txtCity.CanGrow = false; this.txtCity.DataField = "City"; resources.ApplyResources(this.txtCity, "txtCity"); this.txtCity.Name = "txtCity"; // txtRegion this.txtRegion.CanGrow = false; this.txtRegion.DataField = "Region"; resources.ApplyResources(this.txtRegion, "txtRegion"); this.txtRegion.Name = "txtRegion"; // txtPostalCode this.txtPostalCode.CanGrow = false; this.txtPostalCode.DataField = "PostalCode"; resources.ApplyResources(this.txtPostalCode, "txtPostalCode"); this.txtPostalCode.Name = "txtPostalCode"; // txtCountry this.txtCountry.CanGrow = false; this.txtCountry.DataField = "Country"; resources.ApplyResources(this.txtCountry, "txtCountry"); this.txtCountry.Name = "txtCountry"; // Detail this.Detail.CanGrow = false; this.Detail.ColumnCount = 2; this.Detail.ColumnDirection = GrapeCity.ActiveReports.SectionReportModel.ColumnDirection.AcrossDown; this.Detail.ColumnSpacing = 0F; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblNorthWind, this.lblTraders, this.lblAddr1, this.lblAddr2, this.linSep1, this.txtName, this.txtAddress, this.txtCity, this.txtRegion, this.txtPostalCode, this.txtCountry }); this.Detail.Height = 1.487F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Height = 0F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Height = 0.25F; this.PageFooter.Name = "PageFooter"; // NwindLabels this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\Nwind.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = "Select * from customers"; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Sections.Add(this.PageHeader); this.Sections.Add(this.Detail); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 16pt; font-weight: bold; ddo-char-set: 186", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: ita" + "lic; ddo-char-set: 186", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 13pt; font-weight: bold; ddo-char-set: 186", "Heading3", "Normal")); }
/// <summary> /// Required method for 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(CodeReport)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.line1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.qtyTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.productNameTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.unitPriceTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.totalTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.companyNameLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.invoiceLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.orderDateTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.orderIDTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.orderIDLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.label2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.shape3 = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.pageNoFMReportInfo = new GrapeCity.ActiveReports.SectionReportModel.ReportInfo(); this.shape1 = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.shippingAddressLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.billingAddressLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.qtyLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.productDescLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.unitPriceLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.totalLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.crossSectionLine1 = new GrapeCity.ActiveReports.SectionReportModel.CrossSectionLine(); this.crossSectionLine2 = new GrapeCity.ActiveReports.SectionReportModel.CrossSectionLine(); this.crossSectionLine3 = new GrapeCity.ActiveReports.SectionReportModel.CrossSectionLine(); this.line2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.billingAddressTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.shippingAddressTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.shape4 = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.freightLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.freightTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.subTotalLabel = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.subtotalTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.label1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.grandTotalTextBox = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.shape2 = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.line3 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.line4 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.crossSectionBox1 = new GrapeCity.ActiveReports.SectionReportModel.CrossSectionBox(); this.line5 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.customerGroupHeader = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.customerGroupFooter = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); this.BillingAddress = new GrapeCity.ActiveReports.Data.Field(); this.ShippingAddress = new GrapeCity.ActiveReports.Data.Field(); this.Total = new GrapeCity.ActiveReports.Data.Field(); // line1 this.line1.AnchorBottom = true; resources.ApplyResources(this.line1, "line1"); this.line1.LineWeight = 1F; this.line1.Name = "line1"; this.line1.X1 = 0.002F; this.line1.X2 = 6.5F; this.line1.Y1 = 0.198F; this.line1.Y2 = 0.198F; // qtyTextBox resources.ApplyResources(this.qtyTextBox, "qtyTextBox"); this.qtyTextBox.DataField = "Quantity"; this.qtyTextBox.Name = "qtyTextBox"; this.qtyTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // productNameTextBox resources.ApplyResources(this.productNameTextBox, "productNameTextBox"); this.productNameTextBox.DataField = "ProductName"; this.productNameTextBox.Name = "productNameTextBox"; this.productNameTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // unitPriceTextBox resources.ApplyResources(this.unitPriceTextBox, "unitPriceTextBox"); this.unitPriceTextBox.DataField = "UnitPrice"; this.unitPriceTextBox.Name = "unitPriceTextBox"; this.unitPriceTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // totalTextBox resources.ApplyResources(this.totalTextBox, "totalTextBox"); this.totalTextBox.DataField = "Total"; this.totalTextBox.Name = "totalTextBox"; this.totalTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // companyNameLabel resources.ApplyResources(this.companyNameLabel, "companyNameLabel"); this.companyNameLabel.Name = "companyNameLabel"; // invoiceLabel resources.ApplyResources(this.invoiceLabel, "invoiceLabel"); this.invoiceLabel.Name = "invoiceLabel"; // orderDateTextBox resources.ApplyResources(this.orderDateTextBox, "orderDateTextBox"); this.orderDateTextBox.DataField = "OrderDate"; this.orderDateTextBox.Name = "orderDateTextBox"; this.orderDateTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // orderIDTextBox resources.ApplyResources(this.orderIDTextBox, "orderIDTextBox"); this.orderIDTextBox.DataField = "OrderID"; this.orderIDTextBox.Name = "orderIDTextBox"; this.orderIDTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // orderIDLabel resources.ApplyResources(this.orderIDLabel, "orderIDLabel"); this.orderIDLabel.Name = "orderIDLabel"; this.orderIDLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // label2 resources.ApplyResources(this.label2, "label2"); this.label2.Name = "label2"; this.label2.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // shape3 resources.ApplyResources(this.shape3, "shape3"); this.shape3.Name = "shape3"; this.shape3.RoundingRadius = 9.999999F; // pageNoFMReportInfo this.pageNoFMReportInfo.FormatString = "{PageNumber} / {PageCount} "; resources.ApplyResources(this.pageNoFMReportInfo, "pageNoFMReportInfo"); this.pageNoFMReportInfo.Name = "pageNoFMReportInfo"; // shape1 this.shape1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(39)))), ((int)(((byte)(126))))); resources.ApplyResources(this.shape1, "shape1"); this.shape1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(39)))), ((int)(((byte)(126))))); this.shape1.Name = "shape1"; this.shape1.RoundingRadius = 9.999999F; // shippingAddressLabel this.shippingAddressLabel.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressLabel.Border.LeftStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressLabel.Border.RightStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressLabel.Border.TopStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; resources.ApplyResources(this.shippingAddressLabel, "shippingAddressLabel"); this.shippingAddressLabel.Name = "shippingAddressLabel"; // billingAddressLabel this.billingAddressLabel.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressLabel.Border.LeftStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressLabel.Border.RightStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressLabel.Border.TopStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; resources.ApplyResources(this.billingAddressLabel, "billingAddressLabel"); this.billingAddressLabel.Name = "billingAddressLabel"; // qtyLabel resources.ApplyResources(this.qtyLabel, "qtyLabel"); this.qtyLabel.Name = "qtyLabel"; this.qtyLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // productDescLabel resources.ApplyResources(this.productDescLabel, "productDescLabel"); this.productDescLabel.Name = "productDescLabel"; this.productDescLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // unitPriceLabel resources.ApplyResources(this.unitPriceLabel, "unitPriceLabel"); this.unitPriceLabel.Name = "unitPriceLabel"; this.unitPriceLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // totalLabel resources.ApplyResources(this.totalLabel, "totalLabel"); this.totalLabel.Name = "totalLabel"; this.totalLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // crossSectionLine1 this.crossSectionLine1.Bottom = 1.192093E-07F; resources.ApplyResources(this.crossSectionLine1, "crossSectionLine1"); this.crossSectionLine1.LineWeight = 1F; this.crossSectionLine1.Name = "crossSectionLine1"; // crossSectionLine2 this.crossSectionLine2.Bottom = 0F; resources.ApplyResources(this.crossSectionLine2, "crossSectionLine2"); this.crossSectionLine2.LineWeight = 1F; this.crossSectionLine2.Name = "crossSectionLine2"; // crossSectionLine3 this.crossSectionLine3.Bottom = 0.5965834F; resources.ApplyResources(this.crossSectionLine3, "crossSectionLine3"); this.crossSectionLine3.LineWeight = 1F; this.crossSectionLine3.Name = "crossSectionLine3"; // line2 this.line2.AnchorBottom = true; resources.ApplyResources(this.line2, "line2"); this.line2.LineWeight = 1F; this.line2.Name = "line2"; this.line2.X1 = 0F; this.line2.X2 = 6.5F; this.line2.Y1 = 1.253F; this.line2.Y2 = 1.253F; // billingAddressTextBox this.billingAddressTextBox.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressTextBox.Border.LeftStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressTextBox.Border.RightStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.billingAddressTextBox.Border.TopStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; resources.ApplyResources(this.billingAddressTextBox, "billingAddressTextBox"); this.billingAddressTextBox.DataField = "BillingAddress"; this.billingAddressTextBox.Name = "billingAddressTextBox"; // shippingAddressTextBox this.shippingAddressTextBox.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressTextBox.Border.LeftStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressTextBox.Border.RightStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; this.shippingAddressTextBox.Border.TopStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid; resources.ApplyResources(this.shippingAddressTextBox, "shippingAddressTextBox"); this.shippingAddressTextBox.DataField = "ShippingAddress"; this.shippingAddressTextBox.Name = "shippingAddressTextBox"; // shape4 this.shape4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(39)))), ((int)(((byte)(126))))); resources.ApplyResources(this.shape4, "shape4"); this.shape4.LineColor = System.Drawing.Color.Transparent; this.shape4.Name = "shape4"; this.shape4.RoundingRadius = 9.999999F; // freightLabel resources.ApplyResources(this.freightLabel, "freightLabel"); this.freightLabel.Name = "freightLabel"; this.freightLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // freightTextBox resources.ApplyResources(this.freightTextBox, "freightTextBox"); this.freightTextBox.DataField = "Freight"; this.freightTextBox.Name = "freightTextBox"; this.freightTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // subTotalLabel resources.ApplyResources(this.subTotalLabel, "subTotalLabel"); this.subTotalLabel.Name = "subTotalLabel"; this.subTotalLabel.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // subtotalTextBox resources.ApplyResources(this.subtotalTextBox, "subtotalTextBox"); this.subtotalTextBox.DataField = "Total"; this.subtotalTextBox.Name = "subtotalTextBox"; this.subtotalTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); this.subtotalTextBox.SummaryRunning = GrapeCity.ActiveReports.SectionReportModel.SummaryRunning.Group; this.subtotalTextBox.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.GrandTotal; // label1 resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; this.label1.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // grandTotalTextBox resources.ApplyResources(this.grandTotalTextBox, "grandTotalTextBox"); this.grandTotalTextBox.Name = "grandTotalTextBox"; this.grandTotalTextBox.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 2, 0); // shape2 resources.ApplyResources(this.shape2, "shape2"); this.shape2.Name = "shape2"; this.shape2.RoundingRadius = 9.999999F; // line3 resources.ApplyResources(this.line3, "line3"); this.line3.LineWeight = 1F; this.line3.Name = "line3"; this.line3.X1 = 4.5F; this.line3.X2 = 6.498F; this.line3.Y1 = 0.2F; this.line3.Y2 = 0.2F; // line4 resources.ApplyResources(this.line4, "line4"); this.line4.LineWeight = 1F; this.line4.Name = "line4"; this.line4.X1 = 4.5F; this.line4.X2 = 6.498F; this.line4.Y1 = 0.394F; this.line4.Y2 = 0.394F; // crossSectionBox1 this.crossSectionBox1.Bottom = 0F; resources.ApplyResources(this.crossSectionBox1, "crossSectionBox1"); this.crossSectionBox1.LineWeight = 1F; this.crossSectionBox1.Name = "crossSectionBox1"; this.crossSectionBox1.Right = 6.501F; // line5 resources.ApplyResources(this.line5, "line5"); this.line5.LineWeight = 1F; this.line5.Name = "line5"; this.line5.X1 = 4.498F; this.line5.X2 = 6.498F; this.line5.Y1 = 0.8F; this.line5.Y2 = 0.804F; // Detail this.Detail.CanGrow = false; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.line1, this.qtyTextBox, this.productNameTextBox, this.unitPriceTextBox, this.totalTextBox }); this.Detail.Height = 0.2F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; this.Detail.Format += new System.EventHandler(this.Detail_Format); // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.shape3, this.companyNameLabel, this.invoiceLabel, this.orderDateTextBox, this.orderIDTextBox, this.orderIDLabel, this.label2, this.line5 }); this.PageHeader.Height = 1.25F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.pageNoFMReportInfo }); this.PageFooter.Name = "PageFooter"; // customerGroupHeader this.customerGroupHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.shape1, this.shippingAddressLabel, this.billingAddressLabel, this.qtyLabel, this.productDescLabel, this.unitPriceLabel, this.totalLabel, this.crossSectionLine1, this.crossSectionLine2, this.crossSectionLine3, this.line2, this.billingAddressTextBox, this.shippingAddressTextBox, this.crossSectionBox1 }); this.customerGroupHeader.DataField = "OrderID"; this.customerGroupHeader.Height = 1.2F; this.customerGroupHeader.Name = "customerGroupHeader"; this.customerGroupHeader.Format += new System.EventHandler(this.customerGroupHeader_Format); // customerGroupFooter this.customerGroupFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.grandTotalTextBox, this.shape2, this.shape4, this.freightLabel, this.freightTextBox, this.subTotalLabel, this.subtotalTextBox, this.label1, this.line3, this.line4 }); this.customerGroupFooter.Height = 1F; this.customerGroupFooter.Name = "customerGroupFooter"; this.customerGroupFooter.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.After; this.customerGroupFooter.Format += new System.EventHandler(this.customerGroupFooter_Format); // BillingAddress this.BillingAddress.DefaultValue = ""; this.BillingAddress.FieldType = GrapeCity.ActiveReports.Data.FieldTypeEnum.None; this.BillingAddress.Formula = "Customers.CompanyName + \"\n\" + Address + \"\n\" + City + \", \" + Region + \" \" + Posta" + "lCode"; this.BillingAddress.Name = "BillingAddress"; this.BillingAddress.Tag = null; // ShippingAddress this.ShippingAddress.DefaultValue = null; this.ShippingAddress.FieldType = GrapeCity.ActiveReports.Data.FieldTypeEnum.None; this.ShippingAddress.Formula = "ShipName + \"\n\" + ShipAddress + \"\n\" + ShipCity + \", \" + ShipRegion + \" \" + ShipPo" + "stalCode"; this.ShippingAddress.Name = "ShippingAddress"; this.ShippingAddress.Tag = null; // Total this.Total.DefaultValue = null; this.Total.FieldType = GrapeCity.ActiveReports.Data.FieldTypeEnum.None; this.Total.Formula = "Quantity * UnitPrice"; this.Total.Name = "Total"; this.Total.Tag = null; // CodeReport this.MasterReport = false; this.CalculatedFields.Add(this.BillingAddress); this.CalculatedFields.Add(this.ShippingAddress); this.CalculatedFields.Add(this.Total); resources.ApplyResources(this, "$this"); oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = ""; this.DataSource = oleDBDataSource1; this.MaxPages = ((long)(100)); this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.510417F; this.Script = resources.GetString("$this.Script"); this.Sections.Add(this.PageHeader); this.Sections.Add(this.customerGroupHeader); this.Sections.Add(this.Detail); this.Sections.Add(this.customerGroupFooter); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.ReportStart += new System.EventHandler(this.Invoice_ReportStart); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Top10Customers)); GrapeCity.ActiveReports.Chart.ChartArea chartArea1 = new GrapeCity.ActiveReports.Chart.ChartArea(); GrapeCity.ActiveReports.Chart.Axis axis1 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis2 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis3 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis4 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis5 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Legend legend1 = new GrapeCity.ActiveReports.Chart.Legend(); GrapeCity.ActiveReports.Chart.Title title1 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Title title2 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Series series1 = new GrapeCity.ActiveReports.Chart.Series(); GrapeCity.ActiveReports.Chart.Title title3 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Title title4 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtCompanyname = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtSales = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblRank = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.ChartControl1 = new GrapeCity.ActiveReports.SectionReportModel.ChartControl(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.GroupHeader1 = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.GroupFooter1 = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); // txtCompanyname resources.ApplyResources(this.txtCompanyname, "txtCompanyname"); this.txtCompanyname.DataField = "CompanyName"; this.txtCompanyname.Name = "txtCompanyname"; // txtSales resources.ApplyResources(this.txtSales, "txtSales"); this.txtSales.DataField = "Sales"; this.txtSales.Name = "txtSales"; // lblRank resources.ApplyResources(this.lblRank, "lblRank"); this.lblRank.Name = "lblRank"; // ChartControl1 this.ChartControl1.AutoRefresh = true; this.ChartControl1.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Color.White, System.Drawing.Color.LightYellow); axis1.AntiAliasMode = GrapeCity.ActiveReports.Chart.Graphics.AntiAliasMode.Both; axis1.AxisType = GrapeCity.ActiveReports.Chart.AxisType.Categorical; axis1.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("MS PGothic", 8F), -50F); axis1.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.IndianRed, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 1D, 0F, false); axis1.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.DarkRed, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis1.SmartLabels = false; axis1.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis2.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis2.LabelsGap = 0; axis2.LabelsVisible = false; axis2.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis2.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis2.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis2.Position = 0D; axis2.TickOffset = 0D; axis2.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis2.Visible = false; axis3.AntiAliasMode = GrapeCity.ActiveReports.Chart.Graphics.AntiAliasMode.Both; axis3.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Arial", 7F)); axis3.LabelsGap = 0; axis3.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Black, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis3.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Firebrick), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Firebrick, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 50000D, 3F, true); axis3.Min = 0D; axis3.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.MistyRose, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.Dot), 10000D, 0F, false); axis3.Position = 0D; axis3.SmartLabels = false; axis3.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F), -90F); axis4.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis4.LabelsVisible = false; axis4.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis4.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis4.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis4.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis4.Visible = false; axis5.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis5.LabelsGap = 0; axis5.LabelsVisible = false; axis5.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis5.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(), 2D, 10F); axis5.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis5.Position = 0D; axis5.TickOffset = 0D; axis5.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis5.Visible = false; chartArea1.Axes.AddRange(new GrapeCity.ActiveReports.Chart.AxisBase[] { axis1, axis2, axis3, axis4, axis5 }); chartArea1.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched); chartArea1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); chartArea1.Light = new GrapeCity.ActiveReports.Chart.Light(new GrapeCity.ActiveReports.Chart.Graphics.Point3d(10F, 40F, 20F), GrapeCity.ActiveReports.Chart.LightType.Ambient, 0.3F); chartArea1.Name = "defaultArea"; chartArea1.Projection = new GrapeCity.ActiveReports.Chart.Projection(GrapeCity.ActiveReports.Chart.Graphics.ProjectionType.Orthogonal, 0.1F, 0.1F); chartArea1.WallXY = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(System.Drawing.Color.Transparent, ((byte)(197)))); chartArea1.WallXZ = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Gradient, System.Drawing.Color.Gray, System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched, ((byte)(197)))); chartArea1.WallYZ = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Gradient, System.Drawing.Color.DimGray, System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched, ((byte)(200)))); this.ChartControl1.ChartAreas.AddRange(new GrapeCity.ActiveReports.Chart.ChartArea[] { chartArea1 }); this.ChartControl1.ChartBorder = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); this.ChartControl1.ColorPalette = GrapeCity.ActiveReports.Chart.ColorPalette.Cascade; resources.ApplyResources(this.ChartControl1, "ChartControl1"); legend1.Alignment = GrapeCity.ActiveReports.Chart.Alignment.Bottom; legend1.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(System.Drawing.Color.White, ((byte)(128))); legend1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(), 0, System.Drawing.Color.Black); legend1.DockArea = chartArea1; title1.Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched); title1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title1.DockArea = null; title1.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title1.Name = ""; title1.Text = ""; legend1.Footer = title1; legend1.GridLayout = new GrapeCity.ActiveReports.Chart.GridLayout(2, 5); title2.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White, 2), 0, System.Drawing.Color.Black); title2.DockArea = null; title2.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title2.Name = ""; title2.Text = "Top 10 Products"; legend1.Header = title2; legend1.LabelsFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); legend1.Name = "defaultLegend"; legend1.Visible = false; this.ChartControl1.Legends.AddRange(new GrapeCity.ActiveReports.Chart.Legend[] { legend1 }); this.ChartControl1.Name = "ChartControl1"; series1.AxisX = axis1; series1.AxisY = axis3; series1.ChartArea = chartArea1; series1.Legend = legend1; series1.LegendText = ""; series1.Name = "Series1"; series1.Properties = new GrapeCity.ActiveReports.Chart.CustomProperties(new GrapeCity.ActiveReports.Chart.KeyValuePair[] { new GrapeCity.ActiveReports.Chart.KeyValuePair("Backdrop", new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.GradientType.DiagonalDown, System.Drawing.Color.White, System.Drawing.Color.IndianRed)), new GrapeCity.ActiveReports.Chart.KeyValuePair("BorderLine", new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.DimGray)), new GrapeCity.ActiveReports.Chart.KeyValuePair("Tooltip", new GrapeCity.ActiveReports.Chart.LabelInfo()) }); series1.Type = GrapeCity.ActiveReports.Chart.ChartType.Bar2D; series1.ValueMembersY = "Sales"; series1.ValueMemberX = "CompanyName"; this.ChartControl1.Series.AddRange(new GrapeCity.ActiveReports.Chart.Series[] { series1 }); title3.Alignment = GrapeCity.ActiveReports.Chart.Alignment.Center; title3.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title3.DockArea = chartArea1; title3.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title3.Name = "header"; title3.Text = ""; title4.Alignment = GrapeCity.ActiveReports.Chart.Alignment.Center; title4.Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched); title4.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title4.DockArea = chartArea1; title4.Docking = GrapeCity.ActiveReports.Chart.DockType.Bottom; title4.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Arial Unicode MS", 8F)); title4.Name = "footer"; title4.Text = ""; this.ChartControl1.Titles.AddRange(new GrapeCity.ActiveReports.Chart.Title[] { title3, title4 }); this.ChartControl1.UIOptions = GrapeCity.ActiveReports.Chart.UIOptions.ForceHitTesting; // Detail this.Detail.ColumnSpacing = 0F; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtCompanyname, this.txtSales, this.lblRank }); this.Detail.Height = 0.1875F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; this.Detail.Format += new System.EventHandler(this.Detail_Format); // GroupHeader1 this.GroupHeader1.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.ChartControl1 }); this.GroupHeader1.Height = 4F; this.GroupHeader1.Name = "GroupHeader1"; this.GroupHeader1.Format += new System.EventHandler(this.GroupHeader1_Format); // GroupFooter1 this.GroupFooter1.Height = 0F; this.GroupFooter1.Name = "GroupFooter1"; // Top10Customers this.MasterReport = false; resources.ApplyResources(this, "$this"); oleDBDataSource1.ConnectionString = ""; oleDBDataSource1.SQL = "Select * from"; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 3.135417F; this.Sections.Add(this.GroupHeader1); this.Sections.Add(this.Detail); this.Sections.Add(this.GroupFooter1); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.ReportStart += new System.EventHandler(this.Top10Customers_ReportStart); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rptSimpleSub)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.label1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.barcode1 = new GrapeCity.ActiveReports.SectionReportModel.Barcode(); this.line1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.groupHeader1 = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.groupFooter1 = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); // txtProductName resources.ApplyResources(this.txtProductName, "txtProductName"); this.txtProductName.DataField = "ProductName"; this.txtProductName.Name = "txtProductName"; // label1 resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; // barcode1 this.barcode1.DataField = "ProductName"; this.barcode1.Font = new System.Drawing.Font("Courier New", 8F); resources.ApplyResources(this.barcode1, "barcode1"); this.barcode1.Name = "barcode1"; this.barcode1.QuietZoneBottom = 0F; this.barcode1.QuietZoneLeft = 0F; this.barcode1.QuietZoneRight = 0F; this.barcode1.QuietZoneTop = 0F; // line1 resources.ApplyResources(this.line1, "line1"); this.line1.LineColor = System.Drawing.Color.LightSkyBlue; this.line1.LineWeight = 1F; this.line1.Name = "line1"; this.line1.X1 = 0F; this.line1.X2 = 4.6F; this.line1.Y1 = 0.447F; this.line1.Y2 = 0.447F; // Detail this.Detail.BackColor = System.Drawing.Color.AliceBlue; this.Detail.ColumnSpacing = 0F; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductName, this.barcode1, this.line1 }); this.Detail.Height = 0.4891667F; this.Detail.Name = "Detail"; // groupHeader1 this.groupHeader1.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.label1 }); this.groupHeader1.Height = 0.25F; this.groupHeader1.Name = "groupHeader1"; // groupFooter1 this.groupFooter1.Height = 0.25F; this.groupFooter1.Name = "groupFooter1"; // rptSimpleSub this.MasterReport = false; resources.ApplyResources(this, "$this"); oleDBDataSource1.ConnectionString = ""; oleDBDataSource1.SQL = "Select * from"; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 4.6F; this.Sections.Add(this.groupHeader1); this.Sections.Add(this.Detail); this.Sections.Add(this.groupFooter1); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OrdersReport)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtQuantity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtDiscount = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtExtendedPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblMaxPagesSet = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.TextBox1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.TextBox6 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblProductID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblQuantity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblDiscount = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblExtendedPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblTotalExtendedPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtTotalExtendedPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.ghOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.gfOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtProductID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtQuantity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDiscount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtendedPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblMaxPagesSet)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TextBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TextBox6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblQuantity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDiscount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblExtendedPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalExtendedPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalExtendedPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtProductID this.txtProductID.DataField = "ProductID"; resources.ApplyResources(this.txtProductID, "txtProductID"); this.txtProductID.Name = "txtProductID"; // txtUnitPrice this.txtUnitPrice.DataField = "UnitPrice"; resources.ApplyResources(this.txtUnitPrice, "txtUnitPrice"); this.txtUnitPrice.Name = "txtUnitPrice"; // txtQuantity this.txtQuantity.DataField = "Quantity"; resources.ApplyResources(this.txtQuantity, "txtQuantity"); this.txtQuantity.Name = "txtQuantity"; // txtDiscount this.txtDiscount.DataField = "Discount"; resources.ApplyResources(this.txtDiscount, "txtDiscount"); this.txtDiscount.Name = "txtDiscount"; // txtExtendedPrice this.txtExtendedPrice.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtExtendedPrice, "txtExtendedPrice"); this.txtExtendedPrice.Name = "txtExtendedPrice"; // lblMaxPagesSet resources.ApplyResources(this.lblMaxPagesSet, "lblMaxPagesSet"); this.lblMaxPagesSet.Name = "lblMaxPagesSet"; // TextBox1 this.TextBox1.DataField = "OrderID"; resources.ApplyResources(this.TextBox1, "TextBox1"); this.TextBox1.Name = "TextBox1"; // TextBox6 resources.ApplyResources(this.TextBox6, "TextBox6"); this.TextBox6.Name = "TextBox6"; this.TextBox6.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 0, 0); // lblProductID resources.ApplyResources(this.lblProductID, "lblProductID"); this.lblProductID.Name = "lblProductID"; // lblUnitPrice resources.ApplyResources(this.lblUnitPrice, "lblUnitPrice"); this.lblUnitPrice.Name = "lblUnitPrice"; // lblQuantity resources.ApplyResources(this.lblQuantity, "lblQuantity"); this.lblQuantity.Name = "lblQuantity"; // lblDiscount resources.ApplyResources(this.lblDiscount, "lblDiscount"); this.lblDiscount.Name = "lblDiscount"; // lblExtendedPrice resources.ApplyResources(this.lblExtendedPrice, "lblExtendedPrice"); this.lblExtendedPrice.Name = "lblExtendedPrice"; // lblTotalExtendedPrice resources.ApplyResources(this.lblTotalExtendedPrice, "lblTotalExtendedPrice"); this.lblTotalExtendedPrice.Name = "lblTotalExtendedPrice"; this.lblTotalExtendedPrice.Padding = new GrapeCity.ActiveReports.PaddingEx(2, 0, 0, 0); // txtTotalExtendedPrice this.txtTotalExtendedPrice.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtTotalExtendedPrice, "txtTotalExtendedPrice"); this.txtTotalExtendedPrice.Name = "txtTotalExtendedPrice"; this.txtTotalExtendedPrice.SummaryRunning = GrapeCity.ActiveReports.SectionReportModel.SummaryRunning.Group; this.txtTotalExtendedPrice.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; // Detail this.Detail.CanShrink = true; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductID, this.txtUnitPrice, this.txtQuantity, this.txtDiscount, this.txtExtendedPrice }); this.Detail.Height = 0.34375F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // PageHeader this.PageHeader.Height = 0F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblMaxPagesSet }); this.PageFooter.Height = 0.5729167F; this.PageFooter.Name = "PageFooter"; // ghOrderID this.ghOrderID.CanShrink = true; this.ghOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.TextBox1, this.TextBox6, this.lblProductID, this.lblUnitPrice, this.lblQuantity, this.lblDiscount, this.lblExtendedPrice }); this.ghOrderID.DataField = "OrderID"; this.ghOrderID.GroupKeepTogether = GrapeCity.ActiveReports.SectionReportModel.GroupKeepTogether.FirstDetail; this.ghOrderID.Height = 0.6354167F; this.ghOrderID.Name = "ghOrderID"; // gfOrderID this.gfOrderID.CanShrink = true; this.gfOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblTotalExtendedPrice, this.txtTotalExtendedPrice }); this.gfOrderID.Height = 0.3222222F; this.gfOrderID.Name = "gfOrderID"; // OrdersReport this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB;Persist Security Info=False"; oleDBDataSource1.SQL = "SELECT * FROM [Order Details] ORDER BY OrderID"; this.DataSource = oleDBDataSource1; this.MaxPages = ((long)(10)); this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Sections.Add(this.PageHeader); this.Sections.Add(this.ghOrderID); this.Sections.Add(this.Detail); this.Sections.Add(this.gfOrderID); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); this.FetchData += new GrapeCity.ActiveReports.SectionReport.FetchEventHandler(this.OrdersReport_FetchData); this.DataInitialize += new System.EventHandler(this.OrdersReport_DataInitialize); ((System.ComponentModel.ISupportInitialize)(this.txtProductID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtQuantity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDiscount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtendedPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblMaxPagesSet)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TextBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TextBox6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblQuantity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDiscount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblExtendedPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalExtendedPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalExtendedPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CategoryProducts)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblTotalNumber = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtProductCount = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lneReportFooter = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lblUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductName = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTitle = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtCategory = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lnePageHeader1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lnePageHeader2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.reportInfo1 = new GrapeCity.ActiveReports.SectionReportModel.ReportInfo(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.ReportHeader = new GrapeCity.ActiveReports.SectionReportModel.ReportHeader(); this.ReportFooter = new GrapeCity.ActiveReports.SectionReportModel.ReportFooter(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtProductName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalNumber)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtProductCount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCategory)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.reportInfo1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtProductName this.txtProductName.DataField = "ProductName"; resources.ApplyResources(this.txtProductName, "txtProductName"); this.txtProductName.Name = "txtProductName"; // txtUnitPrice this.txtUnitPrice.DataField = "UnitPrice"; resources.ApplyResources(this.txtUnitPrice, "txtUnitPrice"); this.txtUnitPrice.Name = "txtUnitPrice"; // lblTotalNumber resources.ApplyResources(this.lblTotalNumber, "lblTotalNumber"); this.lblTotalNumber.Name = "lblTotalNumber"; // txtProductCount this.txtProductCount.DataField = "ProductName"; resources.ApplyResources(this.txtProductCount, "txtProductCount"); this.txtProductCount.Name = "txtProductCount"; this.txtProductCount.SummaryFunc = GrapeCity.ActiveReports.SectionReportModel.SummaryFunc.Count; this.txtProductCount.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.GrandTotal; // lneReportFooter resources.ApplyResources(this.lneReportFooter, "lneReportFooter"); this.lneReportFooter.LineWeight = 2F; this.lneReportFooter.Name = "lneReportFooter"; this.lneReportFooter.X1 = 0F; this.lneReportFooter.X2 = 6.4375F; this.lneReportFooter.Y1 = 0F; this.lneReportFooter.Y2 = 0F; // lblUnitPrice resources.ApplyResources(this.lblUnitPrice, "lblUnitPrice"); this.lblUnitPrice.Name = "lblUnitPrice"; // lblProductName resources.ApplyResources(this.lblProductName, "lblProductName"); this.lblProductName.Name = "lblProductName"; // lblTitle resources.ApplyResources(this.lblTitle, "lblTitle"); this.lblTitle.Name = "lblTitle"; // txtCategory this.txtCategory.DataField = "CategoryName"; resources.ApplyResources(this.txtCategory, "txtCategory"); this.txtCategory.Name = "txtCategory"; // lnePageHeader1 resources.ApplyResources(this.lnePageHeader1, "lnePageHeader1"); this.lnePageHeader1.LineWeight = 2F; this.lnePageHeader1.Name = "lnePageHeader1"; this.lnePageHeader1.X1 = 0.063F; this.lnePageHeader1.X2 = 6.438F; this.lnePageHeader1.Y1 = 0.7500001F; this.lnePageHeader1.Y2 = 0.7500001F; // lnePageHeader2 resources.ApplyResources(this.lnePageHeader2, "lnePageHeader2"); this.lnePageHeader2.LineWeight = 2F; this.lnePageHeader2.Name = "lnePageHeader2"; this.lnePageHeader2.X1 = 0.062F; this.lnePageHeader2.X2 = 6.437F; this.lnePageHeader2.Y1 = 0.95F; this.lnePageHeader2.Y2 = 0.95F; // reportInfo1 this.reportInfo1.FormatString = "{PageNumber} / {PageCount}"; resources.ApplyResources(this.reportInfo1, "reportInfo1"); this.reportInfo1.Name = "reportInfo1"; // Detail this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductName, this.txtUnitPrice }); this.Detail.Height = 0.2F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // ReportHeader this.ReportHeader.Height = 0F; this.ReportHeader.Name = "ReportHeader"; // ReportFooter this.ReportFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblTotalNumber, this.txtProductCount, this.lneReportFooter }); this.ReportFooter.Height = 0.5194445F; this.ReportFooter.KeepTogether = true; this.ReportFooter.Name = "ReportFooter"; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblUnitPrice, this.lblProductName, this.lblTitle, this.txtCategory, this.lnePageHeader1, this.lnePageHeader2 }); this.PageHeader.Height = 0.95F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.reportInfo1 }); this.PageFooter.Height = 0.2F; this.PageFooter.Name = "PageFooter"; // CategoryProducts this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB"; oleDBDataSource1.SQL = ""; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.Sections.Add(this.ReportHeader); this.Sections.Add(this.PageHeader); this.Sections.Add(this.Detail); this.Sections.Add(this.PageFooter); this.Sections.Add(this.ReportFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); ((System.ComponentModel.ISupportInitialize)(this.txtProductName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalNumber)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtProductCount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCategory)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.reportInfo1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Catalog)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtProductID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtQtyPerUnit = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Line1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lblTitle = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc3 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc4 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc5 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc6 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc7 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDesc8 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.imgNWLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.PageBreak1 = new GrapeCity.ActiveReports.SectionReportModel.PageBreak(); this.boxShip = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.boxTotals = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.boxProducts = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.lblOrderForm = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblAddress = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblInstructionsText = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblBillTo = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblShipTo = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDateOfOrder = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDateRequired = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblCustomerID = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductID2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductName2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblUnitPrice2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblQuantity2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblExtendedPrice2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblSubTotal = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblFreight = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTotal = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lneBillTo1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneBillTo2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneBillTo3 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneBillTo4 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneShipTo1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneShipTo2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneShipTo3 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneShipTo4 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneDateOfOrder = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneDateRequired = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneCustomerID = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts3 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts4 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts5 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts6 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts7 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts8 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts9 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts10 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts12 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts14 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts13 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneTotal1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneTotal2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lblSpeedyExpress = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblUnitedPackage = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblFederalShipping = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblShipVia = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.boxSpeedyExpress = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.boxUnitedPackage = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.boxFederalShipping = new GrapeCity.ActiveReports.SectionReportModel.Shape(); this.SmallPictureLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.NameLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.lneSeparator = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneProducts11 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lblPageFooter = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblPage = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtDescription = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblProductName = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductID = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblQtyPerUnit = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtCategoryName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.oleCategory = new GrapeCity.ActiveReports.SectionReportModel.OleObject(); this.lneSep = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.ReportHeader = new GrapeCity.ActiveReports.SectionReportModel.ReportHeader(); this.ReportFooter = new GrapeCity.ActiveReports.SectionReportModel.ReportFooter(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.ghCategoryName = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.gfCategoryName = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); // txtProductName this.txtProductName.CanGrow = false; this.txtProductName.DataField = "ProductName"; resources.ApplyResources(this.txtProductName, "txtProductName"); this.txtProductName.Name = "txtProductName"; // txtProductID this.txtProductID.CanGrow = false; this.txtProductID.DataField = "ProductID"; resources.ApplyResources(this.txtProductID, "txtProductID"); this.txtProductID.Name = "txtProductID"; // txtQtyPerUnit this.txtQtyPerUnit.CanGrow = false; this.txtQtyPerUnit.DataField = "QuantityPerUnit"; resources.ApplyResources(this.txtQtyPerUnit, "txtQtyPerUnit"); this.txtQtyPerUnit.Name = "txtQtyPerUnit"; // txtUnitPrice this.txtUnitPrice.CanGrow = false; this.txtUnitPrice.DataField = "UnitPrice"; resources.ApplyResources(this.txtUnitPrice, "txtUnitPrice"); this.txtUnitPrice.Name = "txtUnitPrice"; // Line1 resources.ApplyResources(this.Line1, "Line1"); this.Line1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.Line1.LineWeight = 4F; this.Line1.Name = "Line1"; this.Line1.X1 = 0F; this.Line1.X2 = 6.5F; this.Line1.Y1 = 2.5625F; this.Line1.Y2 = 2.5625F; // lblTitle resources.ApplyResources(this.lblTitle, "lblTitle"); this.lblTitle.Name = "lblTitle"; // lblDesc1 resources.ApplyResources(this.lblDesc1, "lblDesc1"); this.lblDesc1.Name = "lblDesc1"; // lblDesc2 resources.ApplyResources(this.lblDesc2, "lblDesc2"); this.lblDesc2.Name = "lblDesc2"; // lblDesc3 resources.ApplyResources(this.lblDesc3, "lblDesc3"); this.lblDesc3.Name = "lblDesc3"; // lblDesc4 resources.ApplyResources(this.lblDesc4, "lblDesc4"); this.lblDesc4.Name = "lblDesc4"; // lblDesc5 resources.ApplyResources(this.lblDesc5, "lblDesc5"); this.lblDesc5.Name = "lblDesc5"; // lblDesc6 resources.ApplyResources(this.lblDesc6, "lblDesc6"); this.lblDesc6.Name = "lblDesc6"; // lblDesc7 resources.ApplyResources(this.lblDesc7, "lblDesc7"); this.lblDesc7.Name = "lblDesc7"; // lblDesc8 resources.ApplyResources(this.lblDesc8, "lblDesc8"); this.lblDesc8.Name = "lblDesc8"; // imgNWLogo this.imgNWLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.imgNWLogo, "imgNWLogo"); this.imgNWLogo.ImageData = ((System.IO.Stream)(resources.GetObject("imgNWLogo.ImageData"))); this.imgNWLogo.LineColor = System.Drawing.Color.Black; this.imgNWLogo.LineWeight = 1F; this.imgNWLogo.Name = "imgNWLogo"; // PageBreak1 resources.ApplyResources(this.PageBreak1, "PageBreak1"); this.PageBreak1.Name = "PageBreak1"; this.PageBreak1.Size = new System.Drawing.SizeF(6.5F, 0.05555556F); // boxShip resources.ApplyResources(this.boxShip, "boxShip"); this.boxShip.Name = "boxShip"; this.boxShip.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxShip.Tag = ""; // boxTotals resources.ApplyResources(this.boxTotals, "boxTotals"); this.boxTotals.Name = "boxTotals"; this.boxTotals.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxTotals.Tag = ""; // boxProducts resources.ApplyResources(this.boxProducts, "boxProducts"); this.boxProducts.Name = "boxProducts"; this.boxProducts.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxProducts.Tag = ""; // lblOrderForm resources.ApplyResources(this.lblOrderForm, "lblOrderForm"); this.lblOrderForm.Name = "lblOrderForm"; this.lblOrderForm.Tag = ""; // lblAddress resources.ApplyResources(this.lblAddress, "lblAddress"); this.lblAddress.Name = "lblAddress"; this.lblAddress.Tag = ""; // lblInstructionsText resources.ApplyResources(this.lblInstructionsText, "lblInstructionsText"); this.lblInstructionsText.Name = "lblInstructionsText"; this.lblInstructionsText.Tag = ""; // lblBillTo resources.ApplyResources(this.lblBillTo, "lblBillTo"); this.lblBillTo.Name = "lblBillTo"; this.lblBillTo.Tag = ""; // lblShipTo resources.ApplyResources(this.lblShipTo, "lblShipTo"); this.lblShipTo.Name = "lblShipTo"; this.lblShipTo.Tag = ""; // lblDateOfOrder resources.ApplyResources(this.lblDateOfOrder, "lblDateOfOrder"); this.lblDateOfOrder.Name = "lblDateOfOrder"; this.lblDateOfOrder.Tag = ""; // lblDateRequired resources.ApplyResources(this.lblDateRequired, "lblDateRequired"); this.lblDateRequired.Name = "lblDateRequired"; this.lblDateRequired.Tag = ""; // lblCustomerID resources.ApplyResources(this.lblCustomerID, "lblCustomerID"); this.lblCustomerID.Name = "lblCustomerID"; this.lblCustomerID.Tag = ""; // lblProductID2 resources.ApplyResources(this.lblProductID2, "lblProductID2"); this.lblProductID2.Name = "lblProductID2"; this.lblProductID2.Tag = ""; // lblProductName2 resources.ApplyResources(this.lblProductName2, "lblProductName2"); this.lblProductName2.Name = "lblProductName2"; this.lblProductName2.Tag = ""; // lblUnitPrice2 resources.ApplyResources(this.lblUnitPrice2, "lblUnitPrice2"); this.lblUnitPrice2.Name = "lblUnitPrice2"; this.lblUnitPrice2.Tag = ""; // lblQuantity2 resources.ApplyResources(this.lblQuantity2, "lblQuantity2"); this.lblQuantity2.Name = "lblQuantity2"; this.lblQuantity2.Tag = ""; // lblExtendedPrice2 resources.ApplyResources(this.lblExtendedPrice2, "lblExtendedPrice2"); this.lblExtendedPrice2.Name = "lblExtendedPrice2"; this.lblExtendedPrice2.Tag = ""; // lblSubTotal resources.ApplyResources(this.lblSubTotal, "lblSubTotal"); this.lblSubTotal.Name = "lblSubTotal"; this.lblSubTotal.Tag = ""; // lblFreight resources.ApplyResources(this.lblFreight, "lblFreight"); this.lblFreight.Name = "lblFreight"; this.lblFreight.Tag = ""; // lblTotal resources.ApplyResources(this.lblTotal, "lblTotal"); this.lblTotal.Name = "lblTotal"; this.lblTotal.Tag = ""; // lneBillTo1 resources.ApplyResources(this.lneBillTo1, "lneBillTo1"); this.lneBillTo1.LineWeight = 1F; this.lneBillTo1.Name = "lneBillTo1"; this.lneBillTo1.Tag = ""; this.lneBillTo1.X1 = 0.7875F; this.lneBillTo1.X2 = 2.985417F; this.lneBillTo1.Y1 = 2.958333F; this.lneBillTo1.Y2 = 2.958333F; // lneBillTo2 resources.ApplyResources(this.lneBillTo2, "lneBillTo2"); this.lneBillTo2.LineWeight = 1F; this.lneBillTo2.Name = "lneBillTo2"; this.lneBillTo2.Tag = ""; this.lneBillTo2.X1 = 0.28125F; this.lneBillTo2.X2 = 2.985417F; this.lneBillTo2.Y1 = 3.135417F; this.lneBillTo2.Y2 = 3.135417F; // lneBillTo3 resources.ApplyResources(this.lneBillTo3, "lneBillTo3"); this.lneBillTo3.LineWeight = 1F; this.lneBillTo3.Name = "lneBillTo3"; this.lneBillTo3.Tag = ""; this.lneBillTo3.X1 = 0.28125F; this.lneBillTo3.X2 = 2.985417F; this.lneBillTo3.Y1 = 3.302083F; this.lneBillTo3.Y2 = 3.302083F; // lneBillTo4 resources.ApplyResources(this.lneBillTo4, "lneBillTo4"); this.lneBillTo4.LineWeight = 1F; this.lneBillTo4.Name = "lneBillTo4"; this.lneBillTo4.Tag = ""; this.lneBillTo4.X1 = 0.28125F; this.lneBillTo4.X2 = 2.985417F; this.lneBillTo4.Y1 = 3.46875F; this.lneBillTo4.Y2 = 3.46875F; // lneShipTo1 resources.ApplyResources(this.lneShipTo1, "lneShipTo1"); this.lneShipTo1.LineWeight = 1F; this.lneShipTo1.Name = "lneShipTo1"; this.lneShipTo1.Tag = ""; this.lneShipTo1.X1 = 3.902083F; this.lneShipTo1.X2 = 6.089583F; this.lneShipTo1.Y1 = 2.958333F; this.lneShipTo1.Y2 = 2.958333F; // lneShipTo2 resources.ApplyResources(this.lneShipTo2, "lneShipTo2"); this.lneShipTo2.LineWeight = 1F; this.lneShipTo2.Name = "lneShipTo2"; this.lneShipTo2.Tag = ""; this.lneShipTo2.X1 = 3.395833F; this.lneShipTo2.X2 = 6.089583F; this.lneShipTo2.Y1 = 3.135417F; this.lneShipTo2.Y2 = 3.135417F; // lneShipTo3 resources.ApplyResources(this.lneShipTo3, "lneShipTo3"); this.lneShipTo3.LineWeight = 1F; this.lneShipTo3.Name = "lneShipTo3"; this.lneShipTo3.Tag = ""; this.lneShipTo3.X1 = 3.395833F; this.lneShipTo3.X2 = 6.089583F; this.lneShipTo3.Y1 = 3.302083F; this.lneShipTo3.Y2 = 3.302083F; // lneShipTo4 resources.ApplyResources(this.lneShipTo4, "lneShipTo4"); this.lneShipTo4.LineWeight = 1F; this.lneShipTo4.Name = "lneShipTo4"; this.lneShipTo4.Tag = ""; this.lneShipTo4.X1 = 3.395833F; this.lneShipTo4.X2 = 6.089583F; this.lneShipTo4.Y1 = 3.46875F; this.lneShipTo4.Y2 = 3.46875F; // lneDateOfOrder resources.ApplyResources(this.lneDateOfOrder, "lneDateOfOrder"); this.lneDateOfOrder.LineWeight = 1F; this.lneDateOfOrder.Name = "lneDateOfOrder"; this.lneDateOfOrder.Tag = ""; this.lneDateOfOrder.X1 = 1.166667F; this.lneDateOfOrder.X2 = 2.666667F; this.lneDateOfOrder.Y1 = 3.916667F; this.lneDateOfOrder.Y2 = 3.916667F; // lneDateRequired resources.ApplyResources(this.lneDateRequired, "lneDateRequired"); this.lneDateRequired.LineWeight = 1F; this.lneDateRequired.Name = "lneDateRequired"; this.lneDateRequired.Tag = ""; this.lneDateRequired.X1 = 1.166667F; this.lneDateRequired.X2 = 2.666667F; this.lneDateRequired.Y1 = 4.15625F; this.lneDateRequired.Y2 = 4.15625F; // lneCustomerID resources.ApplyResources(this.lneCustomerID, "lneCustomerID"); this.lneCustomerID.LineWeight = 1F; this.lneCustomerID.Name = "lneCustomerID"; this.lneCustomerID.Tag = ""; this.lneCustomerID.X1 = 4.18125F; this.lneCustomerID.X2 = 6.0875F; this.lneCustomerID.Y1 = 4.15625F; this.lneCustomerID.Y2 = 4.15625F; // lneProducts2 resources.ApplyResources(this.lneProducts2, "lneProducts2"); this.lneProducts2.LineWeight = 1F; this.lneProducts2.Name = "lneProducts2"; this.lneProducts2.Tag = ""; this.lneProducts2.X1 = 0.3F; this.lneProducts2.X2 = 6.1F; this.lneProducts2.Y1 = 4.645833F; this.lneProducts2.Y2 = 4.645833F; // lneProducts3 resources.ApplyResources(this.lneProducts3, "lneProducts3"); this.lneProducts3.LineWeight = 1F; this.lneProducts3.Name = "lneProducts3"; this.lneProducts3.Tag = ""; this.lneProducts3.X1 = 0.3F; this.lneProducts3.X2 = 6.1F; this.lneProducts3.Y1 = 4.8125F; this.lneProducts3.Y2 = 4.8125F; // lneProducts4 resources.ApplyResources(this.lneProducts4, "lneProducts4"); this.lneProducts4.LineWeight = 1F; this.lneProducts4.Name = "lneProducts4"; this.lneProducts4.Tag = ""; this.lneProducts4.X1 = 0.3F; this.lneProducts4.X2 = 6.1F; this.lneProducts4.Y1 = 4.979167F; this.lneProducts4.Y2 = 4.979167F; // lneProducts5 resources.ApplyResources(this.lneProducts5, "lneProducts5"); this.lneProducts5.LineWeight = 1F; this.lneProducts5.Name = "lneProducts5"; this.lneProducts5.Tag = ""; this.lneProducts5.X1 = 0.3F; this.lneProducts5.X2 = 6.1F; this.lneProducts5.Y1 = 5.145833F; this.lneProducts5.Y2 = 5.145833F; // lneProducts6 resources.ApplyResources(this.lneProducts6, "lneProducts6"); this.lneProducts6.LineWeight = 1F; this.lneProducts6.Name = "lneProducts6"; this.lneProducts6.Tag = ""; this.lneProducts6.X1 = 0.3F; this.lneProducts6.X2 = 6.1F; this.lneProducts6.Y1 = 5.3125F; this.lneProducts6.Y2 = 5.3125F; // lneProducts7 resources.ApplyResources(this.lneProducts7, "lneProducts7"); this.lneProducts7.LineWeight = 1F; this.lneProducts7.Name = "lneProducts7"; this.lneProducts7.Tag = ""; this.lneProducts7.X1 = 0.3F; this.lneProducts7.X2 = 6.1F; this.lneProducts7.Y1 = 5.479167F; this.lneProducts7.Y2 = 5.479167F; // lneProducts8 resources.ApplyResources(this.lneProducts8, "lneProducts8"); this.lneProducts8.LineWeight = 1F; this.lneProducts8.Name = "lneProducts8"; this.lneProducts8.Tag = ""; this.lneProducts8.X1 = 0.3F; this.lneProducts8.X2 = 6.1F; this.lneProducts8.Y1 = 5.645833F; this.lneProducts8.Y2 = 5.645833F; // lneProducts9 resources.ApplyResources(this.lneProducts9, "lneProducts9"); this.lneProducts9.LineWeight = 1F; this.lneProducts9.Name = "lneProducts9"; this.lneProducts9.Tag = ""; this.lneProducts9.X1 = 0.3F; this.lneProducts9.X2 = 6.1F; this.lneProducts9.Y1 = 5.8125F; this.lneProducts9.Y2 = 5.8125F; // lneProducts10 resources.ApplyResources(this.lneProducts10, "lneProducts10"); this.lneProducts10.LineWeight = 1F; this.lneProducts10.Name = "lneProducts10"; this.lneProducts10.Tag = ""; this.lneProducts10.X1 = 0.3F; this.lneProducts10.X2 = 6.1F; this.lneProducts10.Y1 = 5.979167F; this.lneProducts10.Y2 = 5.979167F; // lneProducts1 resources.ApplyResources(this.lneProducts1, "lneProducts1"); this.lneProducts1.LineWeight = 1F; this.lneProducts1.Name = "lneProducts1"; this.lneProducts1.Tag = ""; this.lneProducts1.X1 = 0.3F; this.lneProducts1.X2 = 6.1F; this.lneProducts1.Y1 = 4.489583F; this.lneProducts1.Y2 = 4.489583F; // lneProducts12 resources.ApplyResources(this.lneProducts12, "lneProducts12"); this.lneProducts12.LineWeight = 1F; this.lneProducts12.Name = "lneProducts12"; this.lneProducts12.Tag = ""; this.lneProducts12.X1 = 3.404167F; this.lneProducts12.X2 = 3.404167F; this.lneProducts12.Y1 = 4.259722F; this.lneProducts12.Y2 = 6.144444F; // lneProducts14 resources.ApplyResources(this.lneProducts14, "lneProducts14"); this.lneProducts14.LineWeight = 1F; this.lneProducts14.Name = "lneProducts14"; this.lneProducts14.Tag = ""; this.lneProducts14.X1 = 5.177083F; this.lneProducts14.X2 = 5.177083F; this.lneProducts14.Y1 = 4.259722F; this.lneProducts14.Y2 = 6.822222F; // lneProducts13 resources.ApplyResources(this.lneProducts13, "lneProducts13"); this.lneProducts13.LineWeight = 1F; this.lneProducts13.Name = "lneProducts13"; this.lneProducts13.Tag = ""; this.lneProducts13.X1 = 4.302083F; this.lneProducts13.X2 = 4.302083F; this.lneProducts13.Y1 = 4.259722F; this.lneProducts13.Y2 = 6.144444F; // lneTotal1 resources.ApplyResources(this.lneTotal1, "lneTotal1"); this.lneTotal1.LineWeight = 1F; this.lneTotal1.Name = "lneTotal1"; this.lneTotal1.Tag = ""; this.lneTotal1.X1 = 3.404167F; this.lneTotal1.X2 = 6.095833F; this.lneTotal1.Y1 = 6.365278F; this.lneTotal1.Y2 = 6.365278F; // lneTotal2 resources.ApplyResources(this.lneTotal2, "lneTotal2"); this.lneTotal2.LineWeight = 1F; this.lneTotal2.Name = "lneTotal2"; this.lneTotal2.Tag = ""; this.lneTotal2.X1 = 3.404167F; this.lneTotal2.X2 = 6.095833F; this.lneTotal2.Y1 = 6.594444F; this.lneTotal2.Y2 = 6.594444F; // lblSpeedyExpress resources.ApplyResources(this.lblSpeedyExpress, "lblSpeedyExpress"); this.lblSpeedyExpress.Name = "lblSpeedyExpress"; this.lblSpeedyExpress.Tag = ""; // lblUnitedPackage resources.ApplyResources(this.lblUnitedPackage, "lblUnitedPackage"); this.lblUnitedPackage.Name = "lblUnitedPackage"; this.lblUnitedPackage.Tag = ""; // lblFederalShipping resources.ApplyResources(this.lblFederalShipping, "lblFederalShipping"); this.lblFederalShipping.Name = "lblFederalShipping"; this.lblFederalShipping.Tag = ""; // lblShipVia resources.ApplyResources(this.lblShipVia, "lblShipVia"); this.lblShipVia.Name = "lblShipVia"; this.lblShipVia.Tag = ""; // boxSpeedyExpress resources.ApplyResources(this.boxSpeedyExpress, "boxSpeedyExpress"); this.boxSpeedyExpress.Name = "boxSpeedyExpress"; this.boxSpeedyExpress.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxSpeedyExpress.Tag = ""; // boxUnitedPackage resources.ApplyResources(this.boxUnitedPackage, "boxUnitedPackage"); this.boxUnitedPackage.Name = "boxUnitedPackage"; this.boxUnitedPackage.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxUnitedPackage.Tag = ""; // boxFederalShipping resources.ApplyResources(this.boxFederalShipping, "boxFederalShipping"); this.boxFederalShipping.Name = "boxFederalShipping"; this.boxFederalShipping.RoundingRadius = new GrapeCity.ActiveReports.Controls.CornersRadius(9.99F, null, null, null, null); this.boxFederalShipping.Tag = ""; // SmallPictureLogo this.SmallPictureLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.SmallPictureLogo, "SmallPictureLogo"); this.SmallPictureLogo.ImageData = ((System.IO.Stream)(resources.GetObject("SmallPictureLogo.ImageData"))); this.SmallPictureLogo.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.SmallPictureLogo.Name = "SmallPictureLogo"; this.SmallPictureLogo.Tag = ""; // NameLogo this.NameLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.NameLogo, "NameLogo"); this.NameLogo.ImageData = ((System.IO.Stream)(resources.GetObject("NameLogo.ImageData"))); this.NameLogo.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.NameLogo.Name = "NameLogo"; this.NameLogo.Tag = ""; // lneSeparator resources.ApplyResources(this.lneSeparator, "lneSeparator"); this.lneSeparator.LineWeight = 1F; this.lneSeparator.Name = "lneSeparator"; this.lneSeparator.Tag = ""; this.lneSeparator.X1 = 0F; this.lneSeparator.X2 = 6.5F; this.lneSeparator.Y1 = 0.9270833F; this.lneSeparator.Y2 = 0.9270833F; // lneProducts11 resources.ApplyResources(this.lneProducts11, "lneProducts11"); this.lneProducts11.LineWeight = 1F; this.lneProducts11.Name = "lneProducts11"; this.lneProducts11.Tag = ""; this.lneProducts11.X1 = 0.96875F; this.lneProducts11.X2 = 0.96875F; this.lneProducts11.Y1 = 4.259722F; this.lneProducts11.Y2 = 6.144444F; // lblPageFooter resources.ApplyResources(this.lblPageFooter, "lblPageFooter"); this.lblPageFooter.Name = "lblPageFooter"; // lblPage resources.ApplyResources(this.lblPage, "lblPage"); this.lblPage.Name = "lblPage"; // txtDescription this.txtDescription.CanGrow = false; this.txtDescription.DataField = "Description"; resources.ApplyResources(this.txtDescription, "txtDescription"); this.txtDescription.Name = "txtDescription"; // lblProductName resources.ApplyResources(this.lblProductName, "lblProductName"); this.lblProductName.Name = "lblProductName"; // lblProductID resources.ApplyResources(this.lblProductID, "lblProductID"); this.lblProductID.Name = "lblProductID"; // lblQtyPerUnit resources.ApplyResources(this.lblQtyPerUnit, "lblQtyPerUnit"); this.lblQtyPerUnit.Name = "lblQtyPerUnit"; // lblUnitPrice resources.ApplyResources(this.lblUnitPrice, "lblUnitPrice"); this.lblUnitPrice.Name = "lblUnitPrice"; // txtCategoryName this.txtCategoryName.DataField = "CategoryName"; resources.ApplyResources(this.txtCategoryName, "txtCategoryName"); this.txtCategoryName.Name = "txtCategoryName"; // oleCategory this.oleCategory.Class = null; this.oleCategory.DataField = "Picture"; this.oleCategory.DataValue = null; resources.ApplyResources(this.oleCategory, "oleCategory"); this.oleCategory.Name = "oleCategory"; this.oleCategory.SizeMode = GrapeCity.ActiveReports.SectionReportModel.SizeModes.Stretch; // lneSep resources.ApplyResources(this.lneSep, "lneSep"); this.lneSep.LineWeight = 2F; this.lneSep.Name = "lneSep"; this.lneSep.X1 = 0.125F; this.lneSep.X2 = 6.4375F; this.lneSep.Y1 = 0F; this.lneSep.Y2 = 0F; // Detail this.Detail.CanGrow = false; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductName, this.txtProductID, this.txtQtyPerUnit, this.txtUnitPrice }); this.Detail.Height = 0.2625F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // ReportHeader this.ReportHeader.CanGrow = false; this.ReportHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.Line1, this.lblTitle, this.lblDesc1, this.lblDesc2, this.lblDesc3, this.lblDesc4, this.lblDesc5, this.lblDesc6, this.lblDesc7, this.lblDesc8, this.imgNWLogo, this.PageBreak1 }); this.ReportHeader.Height = 13.0625F; this.ReportHeader.Name = "ReportHeader"; this.ReportHeader.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.After; // ReportFooter this.ReportFooter.CanGrow = false; this.ReportFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.boxShip, this.boxTotals, this.boxProducts, this.lblOrderForm, this.lblAddress, this.lblInstructionsText, this.lblBillTo, this.lblShipTo, this.lblDateOfOrder, this.lblDateRequired, this.lblCustomerID, this.lblProductID2, this.lblProductName2, this.lblUnitPrice2, this.lblQuantity2, this.lblExtendedPrice2, this.lblSubTotal, this.lblFreight, this.lblTotal, this.lneBillTo1, this.lneBillTo2, this.lneBillTo3, this.lneBillTo4, this.lneShipTo1, this.lneShipTo2, this.lneShipTo3, this.lneShipTo4, this.lneDateOfOrder, this.lneDateRequired, this.lneCustomerID, this.lneProducts2, this.lneProducts3, this.lneProducts4, this.lneProducts5, this.lneProducts6, this.lneProducts7, this.lneProducts8, this.lneProducts9, this.lneProducts10, this.lneProducts1, this.lneProducts12, this.lneProducts14, this.lneProducts13, this.lneTotal1, this.lneTotal2, this.lblSpeedyExpress, this.lblUnitedPackage, this.lblFederalShipping, this.lblShipVia, this.boxSpeedyExpress, this.boxUnitedPackage, this.boxFederalShipping, this.SmallPictureLogo, this.NameLogo, this.lneSeparator, this.lneProducts11 }); this.ReportFooter.Height = 7.53125F; this.ReportFooter.KeepTogether = true; this.ReportFooter.Name = "ReportFooter"; this.ReportFooter.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.Before; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Height = 0F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblPageFooter, this.lblPage }); this.PageFooter.Height = 0.46875F; this.PageFooter.Name = "PageFooter"; this.PageFooter.BeforePrint += new System.EventHandler(this.PageFooter_BeforePrint); // ghCategoryName this.ghCategoryName.CanGrow = false; this.ghCategoryName.ColumnLayout = false; this.ghCategoryName.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtDescription, this.lblProductName, this.lblProductID, this.lblQtyPerUnit, this.lblUnitPrice, this.txtCategoryName, this.oleCategory }); this.ghCategoryName.DataField = "CategoryName"; this.ghCategoryName.GroupKeepTogether = GrapeCity.ActiveReports.SectionReportModel.GroupKeepTogether.All; this.ghCategoryName.Height = 1.606F; this.ghCategoryName.KeepTogether = true; this.ghCategoryName.Name = "ghCategoryName"; // gfCategoryName this.gfCategoryName.CanGrow = false; this.gfCategoryName.ColumnLayout = false; this.gfCategoryName.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lneSep }); this.gfCategoryName.Height = 0.07222223F; this.gfCategoryName.KeepTogether = true; this.gfCategoryName.Name = "gfCategoryName"; // Catalog this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = "SELECT Categories.*, Products.*\r\nFROM Categories INNER JOIN Products ON Categorie" + "s.CategoryID = Products.CategoryID\r\nORDER BY Categories.CategoryName;"; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Sections.Add(this.ReportHeader); this.Sections.Add(this.PageHeader); this.Sections.Add(this.ghCategoryName); this.Sections.Add(this.Detail); this.Sections.Add(this.gfCategoryName); this.Sections.Add(this.PageFooter); this.Sections.Add(this.ReportFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); }
/// <summary> /// Required method for 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(InvoiceFiltered)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtProductname = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtQty = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtDiscount = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtExtended = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblNorthWind = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTraders = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNWAddr1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNWAddr2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblInvoice = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtOrderID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Label2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtOrderDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.imgLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.lblThankyou = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label3 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Line1 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.Line2 = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.txtBillToCompany = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCompany = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtSalesPerson = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Label5 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label6 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label7 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label8 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label4 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label10 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label11 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label12 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtShipDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Label13 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtShipper = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Label9 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label14 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Label15 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtSubTotal = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtFreight = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtTotal = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.ghOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.GFOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); // txtProductID this.txtProductID.CanGrow = false; this.txtProductID.DataField = "ProductID"; resources.ApplyResources(this.txtProductID, "txtProductID"); this.txtProductID.Name = "txtProductID"; // txtProductname this.txtProductname.CanGrow = false; this.txtProductname.DataField = "ProductName"; resources.ApplyResources(this.txtProductname, "txtProductname"); this.txtProductname.Name = "txtProductname"; // txtQty this.txtQty.CanGrow = false; this.txtQty.DataField = "Quantity"; resources.ApplyResources(this.txtQty, "txtQty"); this.txtQty.Name = "txtQty"; // txtUnitPrice this.txtUnitPrice.CanGrow = false; this.txtUnitPrice.DataField = "UnitPrice"; resources.ApplyResources(this.txtUnitPrice, "txtUnitPrice"); this.txtUnitPrice.Name = "txtUnitPrice"; // txtDiscount this.txtDiscount.CanGrow = false; this.txtDiscount.DataField = "Discount"; resources.ApplyResources(this.txtDiscount, "txtDiscount"); this.txtDiscount.Name = "txtDiscount"; // txtExtended this.txtExtended.CanGrow = false; this.txtExtended.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtExtended, "txtExtended"); this.txtExtended.Name = "txtExtended"; // lblNorthWind resources.ApplyResources(this.lblNorthWind, "lblNorthWind"); this.lblNorthWind.Name = "lblNorthWind"; // lblTraders resources.ApplyResources(this.lblTraders, "lblTraders"); this.lblTraders.Name = "lblTraders"; // lblNWAddr1 resources.ApplyResources(this.lblNWAddr1, "lblNWAddr1"); this.lblNWAddr1.Name = "lblNWAddr1"; // lblNWAddr2 resources.ApplyResources(this.lblNWAddr2, "lblNWAddr2"); this.lblNWAddr2.Name = "lblNWAddr2"; // lblInvoice resources.ApplyResources(this.lblInvoice, "lblInvoice"); this.lblInvoice.Name = "lblInvoice"; // Label1 resources.ApplyResources(this.Label1, "Label1"); this.Label1.Name = "Label1"; // txtOrderID this.txtOrderID.CanGrow = false; this.txtOrderID.DataField = "OrderID"; resources.ApplyResources(this.txtOrderID, "txtOrderID"); this.txtOrderID.Name = "txtOrderID"; // Label2 resources.ApplyResources(this.Label2, "Label2"); this.Label2.Name = "Label2"; // txtOrderDate this.txtOrderDate.CanGrow = false; this.txtOrderDate.DataField = "OrderDate"; resources.ApplyResources(this.txtOrderDate, "txtOrderDate"); this.txtOrderDate.MultiLine = false; this.txtOrderDate.Name = "txtOrderDate"; // imgLogo this.imgLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.imgLogo, "imgLogo"); this.imgLogo.ImageData = ((System.IO.Stream)(resources.GetObject("imgLogo.ImageData"))); this.imgLogo.LineWeight = 1F; this.imgLogo.Name = "imgLogo"; this.imgLogo.SizeMode = GrapeCity.ActiveReports.SectionReportModel.SizeModes.Zoom; // lblThankyou resources.ApplyResources(this.lblThankyou, "lblThankyou"); this.lblThankyou.Name = "lblThankyou"; // Label3 resources.ApplyResources(this.Label3, "Label3"); this.Label3.Name = "Label3"; // Label resources.ApplyResources(this.Label, "Label"); this.Label.Name = "Label"; // Line1 resources.ApplyResources(this.Line1, "Line1"); this.Line1.LineWeight = 2F; this.Line1.Name = "Line1"; this.Line1.X1 = 0F; this.Line1.X2 = 3F; this.Line1.Y1 = 0.2F; this.Line1.Y2 = 0.2F; // Line2 resources.ApplyResources(this.Line2, "Line2"); this.Line2.LineWeight = 2F; this.Line2.Name = "Line2"; this.Line2.X1 = 6.469F; this.Line2.X2 = 3.469F; this.Line2.Y1 = 0.2F; this.Line2.Y2 = 0.2F; // txtBillToCompany this.txtBillToCompany.CanGrow = false; this.txtBillToCompany.DataField = "Customers.CompanyName"; resources.ApplyResources(this.txtBillToCompany, "txtBillToCompany"); this.txtBillToCompany.Name = "txtBillToCompany"; // txtBillToAddress this.txtBillToAddress.DataField = "Address"; resources.ApplyResources(this.txtBillToAddress, "txtBillToAddress"); this.txtBillToAddress.Name = "txtBillToAddress"; // txtBillToCity this.txtBillToCity.CanGrow = false; this.txtBillToCity.DataField = "City"; resources.ApplyResources(this.txtBillToCity, "txtBillToCity"); this.txtBillToCity.Name = "txtBillToCity"; // txtBillToRegion this.txtBillToRegion.CanGrow = false; this.txtBillToRegion.DataField = "Region"; resources.ApplyResources(this.txtBillToRegion, "txtBillToRegion"); this.txtBillToRegion.Name = "txtBillToRegion"; // txtBillToPostalCode this.txtBillToPostalCode.CanGrow = false; this.txtBillToPostalCode.DataField = "PostalCode"; resources.ApplyResources(this.txtBillToPostalCode, "txtBillToPostalCode"); this.txtBillToPostalCode.Name = "txtBillToPostalCode"; // txtBillToCountry this.txtBillToCountry.CanGrow = false; this.txtBillToCountry.DataField = "Country"; resources.ApplyResources(this.txtBillToCountry, "txtBillToCountry"); this.txtBillToCountry.Name = "txtBillToCountry"; // txtShipToCompany this.txtShipToCompany.CanGrow = false; this.txtShipToCompany.DataField = "ShipName"; resources.ApplyResources(this.txtShipToCompany, "txtShipToCompany"); this.txtShipToCompany.Name = "txtShipToCompany"; // txtShipToAddress this.txtShipToAddress.DataField = "ShipAddress"; resources.ApplyResources(this.txtShipToAddress, "txtShipToAddress"); this.txtShipToAddress.Name = "txtShipToAddress"; // txtShipToCity this.txtShipToCity.CanGrow = false; this.txtShipToCity.DataField = "ShipCity"; resources.ApplyResources(this.txtShipToCity, "txtShipToCity"); this.txtShipToCity.Name = "txtShipToCity"; // txtShipToRegion this.txtShipToRegion.CanGrow = false; this.txtShipToRegion.DataField = "ShipRegion"; resources.ApplyResources(this.txtShipToRegion, "txtShipToRegion"); this.txtShipToRegion.Name = "txtShipToRegion"; // txtShipToPostalCode this.txtShipToPostalCode.CanGrow = false; this.txtShipToPostalCode.DataField = "ShipPostalCode"; resources.ApplyResources(this.txtShipToPostalCode, "txtShipToPostalCode"); this.txtShipToPostalCode.Name = "txtShipToPostalCode"; // txtShipToCountry this.txtShipToCountry.CanGrow = false; this.txtShipToCountry.DataField = "ShipCountry"; resources.ApplyResources(this.txtShipToCountry, "txtShipToCountry"); this.txtShipToCountry.Name = "txtShipToCountry"; // txtSalesPerson this.txtSalesPerson.CanGrow = false; this.txtSalesPerson.DataField = "Salesperson"; resources.ApplyResources(this.txtSalesPerson, "txtSalesPerson"); this.txtSalesPerson.Name = "txtSalesPerson"; // Label5 resources.ApplyResources(this.Label5, "Label5"); this.Label5.Name = "Label5"; // Label6 resources.ApplyResources(this.Label6, "Label6"); this.Label6.Name = "Label6"; // Label7 resources.ApplyResources(this.Label7, "Label7"); this.Label7.Name = "Label7"; // Label8 resources.ApplyResources(this.Label8, "Label8"); this.Label8.Name = "Label8"; // Label4 resources.ApplyResources(this.Label4, "Label4"); this.Label4.Name = "Label4"; // Label10 resources.ApplyResources(this.Label10, "Label10"); this.Label10.Name = "Label10"; // Label11 resources.ApplyResources(this.Label11, "Label11"); this.Label11.Name = "Label11"; // Label12 resources.ApplyResources(this.Label12, "Label12"); this.Label12.Name = "Label12"; // txtShipDate this.txtShipDate.CanGrow = false; this.txtShipDate.DataField = "ShippedDate"; resources.ApplyResources(this.txtShipDate, "txtShipDate"); this.txtShipDate.Name = "txtShipDate"; // Label13 resources.ApplyResources(this.Label13, "Label13"); this.Label13.Name = "Label13"; // txtShipper this.txtShipper.CanGrow = false; this.txtShipper.DataField = "Shippers.CompanyName"; resources.ApplyResources(this.txtShipper, "txtShipper"); this.txtShipper.Name = "txtShipper"; // Label9 resources.ApplyResources(this.Label9, "Label9"); this.Label9.Name = "Label9"; // Label14 resources.ApplyResources(this.Label14, "Label14"); this.Label14.Name = "Label14"; // Label15 resources.ApplyResources(this.Label15, "Label15"); this.Label15.Name = "Label15"; // txtSubTotal this.txtSubTotal.CanGrow = false; this.txtSubTotal.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtSubTotal, "txtSubTotal"); this.txtSubTotal.Name = "txtSubTotal"; this.txtSubTotal.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; // txtFreight this.txtFreight.CanGrow = false; this.txtFreight.DataField = "Freight"; resources.ApplyResources(this.txtFreight, "txtFreight"); this.txtFreight.Name = "txtFreight"; this.txtFreight.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; // txtTotal this.txtTotal.CanGrow = false; resources.ApplyResources(this.txtTotal, "txtTotal"); this.txtTotal.Name = "txtTotal"; // Detail this.Detail.CanGrow = false; this.Detail.ColumnSpacing = 0F; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductID, this.txtProductname, this.txtQty, this.txtUnitPrice, this.txtDiscount, this.txtExtended }); this.Detail.Height = 0.2F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblNorthWind, this.lblTraders, this.lblNWAddr1, this.lblNWAddr2, this.lblInvoice, this.Label1, this.txtOrderID, this.Label2, this.txtOrderDate, this.imgLogo }); this.PageHeader.Height = 1.15F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblThankyou }); this.PageFooter.Height = 0.25F; this.PageFooter.Name = "PageFooter"; // ghOrderID this.ghOrderID.ColumnLayout = false; this.ghOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.Label3, this.Label, this.Line1, this.Line2, this.txtBillToCompany, this.txtBillToAddress, this.txtBillToCity, this.txtBillToRegion, this.txtBillToPostalCode, this.txtBillToCountry, this.txtShipToCompany, this.txtShipToAddress, this.txtShipToCity, this.txtShipToRegion, this.txtShipToPostalCode, this.txtShipToCountry, this.txtSalesPerson, this.Label5, this.Label6, this.Label7, this.Label8, this.Label4, this.Label10, this.Label11, this.Label12, this.txtShipDate, this.Label13, this.txtShipper }); this.ghOrderID.DataField = "OrderID"; this.ghOrderID.Height = 1.581944F; this.ghOrderID.KeepTogether = true; this.ghOrderID.Name = "ghOrderID"; // GFOrderID this.GFOrderID.CanGrow = false; this.GFOrderID.ColumnLayout = false; this.GFOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.Label9, this.Label14, this.Label15, this.txtSubTotal, this.txtFreight, this.txtTotal }); this.GFOrderID.Height = 0.6F; this.GFOrderID.KeepTogether = true; this.GFOrderID.Name = "GFOrderID"; this.GFOrderID.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.After; // InvoiceFiltered this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\Nwind.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = "SELECT * FROM Invoices \r\nWHERE ((OrderDate >= #<%StartingDate|Starting Date:|8-1-" + "1994|D%>#) AND (OrderDate <= #<%EndingDate|Ending Date:|9-1-1994|D%>#))\r\nORDER B" + "Y OrderID"; this.DataSource = oleDBDataSource1; this.MaxPages = ((long)(100)); this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Script = resources.GetString("$this.Script"); this.Sections.Add(this.PageHeader); this.Sections.Add(this.ghOrderID); this.Sections.Add(this.Detail); this.Sections.Add(this.GFOrderID); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 16pt; font-weight: bold; ddo-char-set: 186", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 14pt; font-weight: bold; font-style: italic; ddo-char-set: 186", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 13pt; font-weight: bold; ddo-char-set: 186", "Heading3", "Normal")); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Invoice)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtProductID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtProductname = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtQty = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtDiscount = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtExtended = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblNorthWind = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTraders = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNWAddr1 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNWAddr2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblInvoice = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblOrderNum = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtOrderID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblOrderDate = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtOrderDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.imgLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.lblThankYou = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblBillTo = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblShipTo = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lneBillTo = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lneShipTo = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.txtBillToCompany = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtBillToCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCompany = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtShipToCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtSalesPerson = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblSalesPerson = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductID = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblProductName = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblQty = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblUnitPrice = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDiscount = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTotal = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblShipped = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtShipDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblShippedVia = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtShipper = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblSubTotal = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblFreight = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblGrandTotal = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtSubTotal = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtFreight = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtTotal = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.ghOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.GFOrderID = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtProductID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtProductname)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtQty)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDiscount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtended)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNorthWind)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTraders)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddr1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddr2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblInvoice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderNum)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblThankYou)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblBillTo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShipTo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCompany)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToPostalCode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCountry)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCompany)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToPostalCode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCountry)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSalesPerson)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSalesPerson)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblQty)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDiscount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShipped)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShippedVia)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipper)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSubTotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblFreight)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblGrandTotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSubTotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtFreight)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtProductID this.txtProductID.CanGrow = false; this.txtProductID.DataField = "ProductID"; resources.ApplyResources(this.txtProductID, "txtProductID"); this.txtProductID.Name = "txtProductID"; // txtProductname this.txtProductname.CanGrow = false; this.txtProductname.DataField = "ProductName"; resources.ApplyResources(this.txtProductname, "txtProductname"); this.txtProductname.Name = "txtProductname"; // txtQty this.txtQty.CanGrow = false; this.txtQty.DataField = "Quantity"; resources.ApplyResources(this.txtQty, "txtQty"); this.txtQty.Name = "txtQty"; // txtUnitPrice this.txtUnitPrice.CanGrow = false; this.txtUnitPrice.DataField = "UnitPrice"; resources.ApplyResources(this.txtUnitPrice, "txtUnitPrice"); this.txtUnitPrice.Name = "txtUnitPrice"; // txtDiscount this.txtDiscount.CanGrow = false; this.txtDiscount.DataField = "Discount"; resources.ApplyResources(this.txtDiscount, "txtDiscount"); this.txtDiscount.Name = "txtDiscount"; // txtExtended this.txtExtended.CanGrow = false; this.txtExtended.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtExtended, "txtExtended"); this.txtExtended.Name = "txtExtended"; // lblNorthWind resources.ApplyResources(this.lblNorthWind, "lblNorthWind"); this.lblNorthWind.Name = "lblNorthWind"; // lblTraders resources.ApplyResources(this.lblTraders, "lblTraders"); this.lblTraders.Name = "lblTraders"; // lblNWAddr1 resources.ApplyResources(this.lblNWAddr1, "lblNWAddr1"); this.lblNWAddr1.Name = "lblNWAddr1"; // lblNWAddr2 resources.ApplyResources(this.lblNWAddr2, "lblNWAddr2"); this.lblNWAddr2.Name = "lblNWAddr2"; // lblInvoice resources.ApplyResources(this.lblInvoice, "lblInvoice"); this.lblInvoice.Name = "lblInvoice"; // lblOrderNum resources.ApplyResources(this.lblOrderNum, "lblOrderNum"); this.lblOrderNum.Name = "lblOrderNum"; // txtOrderID this.txtOrderID.CanGrow = false; this.txtOrderID.DataField = "OrderID"; resources.ApplyResources(this.txtOrderID, "txtOrderID"); this.txtOrderID.Name = "txtOrderID"; // lblOrderDate resources.ApplyResources(this.lblOrderDate, "lblOrderDate"); this.lblOrderDate.Name = "lblOrderDate"; // txtOrderDate this.txtOrderDate.CanGrow = false; this.txtOrderDate.DataField = "OrderDate"; resources.ApplyResources(this.txtOrderDate, "txtOrderDate"); this.txtOrderDate.Name = "txtOrderDate"; // imgLogo this.imgLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.imgLogo, "imgLogo"); this.imgLogo.ImageData = ((System.IO.Stream)(resources.GetObject("imgLogo.ImageData"))); this.imgLogo.LineColor = System.Drawing.Color.Black; this.imgLogo.LineWeight = 1F; this.imgLogo.Name = "imgLogo"; this.imgLogo.SizeMode = GrapeCity.ActiveReports.SectionReportModel.SizeModes.Zoom; // lblThankYou resources.ApplyResources(this.lblThankYou, "lblThankYou"); this.lblThankYou.Name = "lblThankYou"; // lblBillTo resources.ApplyResources(this.lblBillTo, "lblBillTo"); this.lblBillTo.Name = "lblBillTo"; // lblShipTo resources.ApplyResources(this.lblShipTo, "lblShipTo"); this.lblShipTo.Name = "lblShipTo"; // lneBillTo resources.ApplyResources(this.lneBillTo, "lneBillTo"); this.lneBillTo.LineWeight = 2F; this.lneBillTo.Name = "lneBillTo"; this.lneBillTo.X1 = 0F; this.lneBillTo.X2 = 3F; this.lneBillTo.Y1 = 0.2F; this.lneBillTo.Y2 = 0.2F; // lneShipTo resources.ApplyResources(this.lneShipTo, "lneShipTo"); this.lneShipTo.LineWeight = 2F; this.lneShipTo.Name = "lneShipTo"; this.lneShipTo.X1 = 6.469F; this.lneShipTo.X2 = 3.469F; this.lneShipTo.Y1 = 0.2F; this.lneShipTo.Y2 = 0.2F; // txtBillToCompany this.txtBillToCompany.CanGrow = false; this.txtBillToCompany.DataField = "Customers.CompanyName"; resources.ApplyResources(this.txtBillToCompany, "txtBillToCompany"); this.txtBillToCompany.Name = "txtBillToCompany"; // txtBillToAddress this.txtBillToAddress.DataField = "Address"; resources.ApplyResources(this.txtBillToAddress, "txtBillToAddress"); this.txtBillToAddress.Name = "txtBillToAddress"; // txtBillToCity this.txtBillToCity.CanGrow = false; this.txtBillToCity.DataField = "City"; resources.ApplyResources(this.txtBillToCity, "txtBillToCity"); this.txtBillToCity.Name = "txtBillToCity"; // txtBillToRegion this.txtBillToRegion.CanGrow = false; this.txtBillToRegion.DataField = "Region"; resources.ApplyResources(this.txtBillToRegion, "txtBillToRegion"); this.txtBillToRegion.Name = "txtBillToRegion"; // txtBillToPostalCode this.txtBillToPostalCode.CanGrow = false; this.txtBillToPostalCode.DataField = "PostalCode"; resources.ApplyResources(this.txtBillToPostalCode, "txtBillToPostalCode"); this.txtBillToPostalCode.Name = "txtBillToPostalCode"; // txtBillToCountry this.txtBillToCountry.CanGrow = false; this.txtBillToCountry.DataField = "Country"; resources.ApplyResources(this.txtBillToCountry, "txtBillToCountry"); this.txtBillToCountry.Name = "txtBillToCountry"; // txtShipToCompany this.txtShipToCompany.CanGrow = false; this.txtShipToCompany.DataField = "ShipName"; resources.ApplyResources(this.txtShipToCompany, "txtShipToCompany"); this.txtShipToCompany.Name = "txtShipToCompany"; // txtShipToAddress this.txtShipToAddress.DataField = "ShipAddress"; resources.ApplyResources(this.txtShipToAddress, "txtShipToAddress"); this.txtShipToAddress.Name = "txtShipToAddress"; // txtShipToCity this.txtShipToCity.CanGrow = false; this.txtShipToCity.DataField = "ShipCity"; resources.ApplyResources(this.txtShipToCity, "txtShipToCity"); this.txtShipToCity.Name = "txtShipToCity"; // txtShipToRegion this.txtShipToRegion.CanGrow = false; this.txtShipToRegion.DataField = "ShipRegion"; resources.ApplyResources(this.txtShipToRegion, "txtShipToRegion"); this.txtShipToRegion.Name = "txtShipToRegion"; // txtShipToPostalCode this.txtShipToPostalCode.CanGrow = false; this.txtShipToPostalCode.DataField = "ShipPostalCode"; resources.ApplyResources(this.txtShipToPostalCode, "txtShipToPostalCode"); this.txtShipToPostalCode.Name = "txtShipToPostalCode"; // txtShipToCountry this.txtShipToCountry.CanGrow = false; this.txtShipToCountry.DataField = "ShipCountry"; resources.ApplyResources(this.txtShipToCountry, "txtShipToCountry"); this.txtShipToCountry.Name = "txtShipToCountry"; // txtSalesPerson this.txtSalesPerson.CanGrow = false; this.txtSalesPerson.DataField = "Salesperson"; resources.ApplyResources(this.txtSalesPerson, "txtSalesPerson"); this.txtSalesPerson.Name = "txtSalesPerson"; // lblSalesPerson resources.ApplyResources(this.lblSalesPerson, "lblSalesPerson"); this.lblSalesPerson.Name = "lblSalesPerson"; // lblProductID resources.ApplyResources(this.lblProductID, "lblProductID"); this.lblProductID.Name = "lblProductID"; // lblProductName resources.ApplyResources(this.lblProductName, "lblProductName"); this.lblProductName.Name = "lblProductName"; // lblQty resources.ApplyResources(this.lblQty, "lblQty"); this.lblQty.Name = "lblQty"; // lblUnitPrice resources.ApplyResources(this.lblUnitPrice, "lblUnitPrice"); this.lblUnitPrice.Name = "lblUnitPrice"; // lblDiscount resources.ApplyResources(this.lblDiscount, "lblDiscount"); this.lblDiscount.Name = "lblDiscount"; // lblTotal resources.ApplyResources(this.lblTotal, "lblTotal"); this.lblTotal.Name = "lblTotal"; // lblShipped resources.ApplyResources(this.lblShipped, "lblShipped"); this.lblShipped.Name = "lblShipped"; // txtShipDate this.txtShipDate.CanGrow = false; this.txtShipDate.DataField = "ShippedDate"; resources.ApplyResources(this.txtShipDate, "txtShipDate"); this.txtShipDate.Name = "txtShipDate"; // lblShippedVia resources.ApplyResources(this.lblShippedVia, "lblShippedVia"); this.lblShippedVia.Name = "lblShippedVia"; // txtShipper this.txtShipper.CanGrow = false; this.txtShipper.DataField = "Shippers.CompanyName"; resources.ApplyResources(this.txtShipper, "txtShipper"); this.txtShipper.Name = "txtShipper"; // lblSubTotal resources.ApplyResources(this.lblSubTotal, "lblSubTotal"); this.lblSubTotal.Name = "lblSubTotal"; // lblFreight resources.ApplyResources(this.lblFreight, "lblFreight"); this.lblFreight.Name = "lblFreight"; // lblGrandTotal resources.ApplyResources(this.lblGrandTotal, "lblGrandTotal"); this.lblGrandTotal.Name = "lblGrandTotal"; // txtSubTotal this.txtSubTotal.CanGrow = false; this.txtSubTotal.DataField = "ExtendedPrice"; resources.ApplyResources(this.txtSubTotal, "txtSubTotal"); this.txtSubTotal.Name = "txtSubTotal"; this.txtSubTotal.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; // txtFreight this.txtFreight.CanGrow = false; this.txtFreight.DataField = "Freight"; resources.ApplyResources(this.txtFreight, "txtFreight"); this.txtFreight.Name = "txtFreight"; this.txtFreight.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; // txtTotal this.txtTotal.CanGrow = false; resources.ApplyResources(this.txtTotal, "txtTotal"); this.txtTotal.Name = "txtTotal"; // Detail this.Detail.CanGrow = false; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtProductID, this.txtProductname, this.txtQty, this.txtUnitPrice, this.txtDiscount, this.txtExtended }); this.Detail.Height = 0.2F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblNorthWind, this.lblTraders, this.lblNWAddr1, this.lblNWAddr2, this.lblInvoice, this.lblOrderNum, this.txtOrderID, this.lblOrderDate, this.txtOrderDate, this.imgLogo }); this.PageHeader.Height = 1.15F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblThankYou }); this.PageFooter.Name = "PageFooter"; // ghOrderID this.ghOrderID.ColumnLayout = false; this.ghOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblBillTo, this.lblShipTo, this.lneBillTo, this.lneShipTo, this.txtBillToCompany, this.txtBillToAddress, this.txtBillToCity, this.txtBillToRegion, this.txtBillToPostalCode, this.txtBillToCountry, this.txtShipToCompany, this.txtShipToAddress, this.txtShipToCity, this.txtShipToRegion, this.txtShipToPostalCode, this.txtShipToCountry, this.txtSalesPerson, this.lblSalesPerson, this.lblProductID, this.lblProductName, this.lblQty, this.lblUnitPrice, this.lblDiscount, this.lblTotal, this.lblShipped, this.txtShipDate, this.lblShippedVia, this.txtShipper }); this.ghOrderID.DataField = "OrderID"; this.ghOrderID.Height = 1.604167F; this.ghOrderID.KeepTogether = true; this.ghOrderID.Name = "ghOrderID"; // GFOrderID this.GFOrderID.CanGrow = false; this.GFOrderID.ColumnLayout = false; this.GFOrderID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblSubTotal, this.lblFreight, this.lblGrandTotal, this.txtSubTotal, this.txtFreight, this.txtTotal }); this.GFOrderID.Height = 0.625F; this.GFOrderID.KeepTogether = true; this.GFOrderID.Name = "GFOrderID"; this.GFOrderID.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.After; // Invoice this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\Nwind.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = "SELECT * FROM Invoices \r\nORDER BY Customers.CompanyName, OrderID"; this.DataSource = oleDBDataSource1; this.MaxPages = ((long)(100)); this.PageSettings.Margins.Left = 1F; this.PageSettings.Margins.Right = 1F; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Script = resources.GetString("$this.Script"); this.Sections.Add(this.PageHeader); this.Sections.Add(this.ghOrderID); this.Sections.Add(this.Detail); this.Sections.Add(this.GFOrderID); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); ((System.ComponentModel.ISupportInitialize)(this.txtProductID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtProductname)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtQty)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDiscount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtended)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNorthWind)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTraders)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddr1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddr2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblInvoice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderNum)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblThankYou)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblBillTo)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShipTo)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCompany)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToPostalCode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBillToCountry)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCompany)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToPostalCode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipToCountry)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSalesPerson)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSalesPerson)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblProductName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblQty)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblUnitPrice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDiscount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShipped)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblShippedVia)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtShipper)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSubTotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblFreight)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblGrandTotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSubTotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtFreight)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rptDesignChild)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtCustomerID1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCompanyName1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtContactName1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCountry1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtAddress1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); ((System.ComponentModel.ISupportInitialize)(this.txtCustomerID1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // txtCustomerID1 // this.txtCustomerID1.CanShrink = true; this.txtCustomerID1.DataField = "CustomerID"; resources.ApplyResources(this.txtCustomerID1, "txtCustomerID1"); this.txtCustomerID1.Name = "txtCustomerID1"; // // txtCompanyName1 // this.txtCompanyName1.CanShrink = true; this.txtCompanyName1.DataField = "CompanyName"; resources.ApplyResources(this.txtCompanyName1, "txtCompanyName1"); this.txtCompanyName1.Name = "txtCompanyName1"; // // txtContactName1 // this.txtContactName1.CanShrink = true; this.txtContactName1.DataField = "ContactName"; resources.ApplyResources(this.txtContactName1, "txtContactName1"); this.txtContactName1.Name = "txtContactName1"; // // txtCountry1 // this.txtCountry1.CanShrink = true; this.txtCountry1.DataField = "Country"; resources.ApplyResources(this.txtCountry1, "txtCountry1"); this.txtCountry1.Name = "txtCountry1"; // // txtAddress1 // this.txtAddress1.CanShrink = true; this.txtAddress1.DataField = "Address"; resources.ApplyResources(this.txtAddress1, "txtAddress1"); this.txtAddress1.Name = "txtAddress1"; // // Detail // this.Detail.CanShrink = true; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtCustomerID1, this.txtCompanyName1, this.txtContactName1, this.txtCountry1, this.txtAddress1 }); this.Detail.Height = 0.375F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // // rptDesignChild // this.DataSource = oleDBDataSource1; this.MasterReport = false; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.Sections.Add(this.Detail); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-style: normal; text-decoration: none; font-weight: normal; font-size: 10pt; " + "color: Black; font-family: MS UI Gothic; ddo-char-set: 186", "Normal")); ((System.ComponentModel.ISupportInitialize)(this.txtCustomerID1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EmployeeProfiles)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtEmployeeID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtTitle = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtHireDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtHomePhone = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtExtension = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtNotes = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblTitle2 = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblAddress = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblCityRegion = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblPostalCode = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblCountry = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblExtension = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblHomePhone = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblHireDate = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNotes = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblID = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblBirthDate = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtBirthDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblTitle = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtDescription = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.picture1 = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtEmployeeID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTitle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtHireDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPostalCode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtHomePhone)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtension)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtNotes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblCityRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblPostalCode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblCountry)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblExtension)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblHomePhone)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblHireDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNotes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblBirthDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBirthDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDescription)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picture1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtEmployeeID this.txtEmployeeID.DataField = "EmployeeID"; resources.ApplyResources(this.txtEmployeeID, "txtEmployeeID"); this.txtEmployeeID.Name = "txtEmployeeID"; // txtTitle this.txtTitle.DataField = "Title"; resources.ApplyResources(this.txtTitle, "txtTitle"); this.txtTitle.Name = "txtTitle"; // txtHireDate this.txtHireDate.DataField = "HireDate"; resources.ApplyResources(this.txtHireDate, "txtHireDate"); this.txtHireDate.Name = "txtHireDate"; // txtAddress this.txtAddress.DataField = "Address"; resources.ApplyResources(this.txtAddress, "txtAddress"); this.txtAddress.Name = "txtAddress"; // txtCity this.txtCity.DataField = "City"; resources.ApplyResources(this.txtCity, "txtCity"); this.txtCity.Name = "txtCity"; // txtRegion this.txtRegion.DataField = "Region"; resources.ApplyResources(this.txtRegion, "txtRegion"); this.txtRegion.Name = "txtRegion"; // txtPostalCode this.txtPostalCode.DataField = "PostalCode"; resources.ApplyResources(this.txtPostalCode, "txtPostalCode"); this.txtPostalCode.Name = "txtPostalCode"; // txtCountry this.txtCountry.DataField = "Country"; resources.ApplyResources(this.txtCountry, "txtCountry"); this.txtCountry.Name = "txtCountry"; // txtHomePhone this.txtHomePhone.DataField = "HomePhone"; resources.ApplyResources(this.txtHomePhone, "txtHomePhone"); this.txtHomePhone.Name = "txtHomePhone"; // txtExtension this.txtExtension.DataField = "Extension"; resources.ApplyResources(this.txtExtension, "txtExtension"); this.txtExtension.Name = "txtExtension"; // txtNotes this.txtNotes.DataField = "Notes"; resources.ApplyResources(this.txtNotes, "txtNotes"); this.txtNotes.Name = "txtNotes"; // lblTitle2 resources.ApplyResources(this.lblTitle2, "lblTitle2"); this.lblTitle2.Name = "lblTitle2"; this.lblTitle2.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblAddress resources.ApplyResources(this.lblAddress, "lblAddress"); this.lblAddress.Name = "lblAddress"; this.lblAddress.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblCityRegion resources.ApplyResources(this.lblCityRegion, "lblCityRegion"); this.lblCityRegion.Name = "lblCityRegion"; this.lblCityRegion.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblPostalCode resources.ApplyResources(this.lblPostalCode, "lblPostalCode"); this.lblPostalCode.Name = "lblPostalCode"; this.lblPostalCode.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblCountry resources.ApplyResources(this.lblCountry, "lblCountry"); this.lblCountry.Name = "lblCountry"; this.lblCountry.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblExtension resources.ApplyResources(this.lblExtension, "lblExtension"); this.lblExtension.Name = "lblExtension"; this.lblExtension.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblHomePhone resources.ApplyResources(this.lblHomePhone, "lblHomePhone"); this.lblHomePhone.Name = "lblHomePhone"; this.lblHomePhone.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblHireDate resources.ApplyResources(this.lblHireDate, "lblHireDate"); this.lblHireDate.Name = "lblHireDate"; this.lblHireDate.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblNotes resources.ApplyResources(this.lblNotes, "lblNotes"); this.lblNotes.Name = "lblNotes"; this.lblNotes.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // lblID resources.ApplyResources(this.lblID, "lblID"); this.lblID.Name = "lblID"; // lblBirthDate resources.ApplyResources(this.lblBirthDate, "lblBirthDate"); this.lblBirthDate.Name = "lblBirthDate"; this.lblBirthDate.Padding = new GrapeCity.ActiveReports.PaddingEx(0, 0, 2, 0); // txtBirthDate this.txtBirthDate.DataField = "BirthDate"; resources.ApplyResources(this.txtBirthDate, "txtBirthDate"); this.txtBirthDate.Name = "txtBirthDate"; // txtName this.txtName.DataField = "Name"; resources.ApplyResources(this.txtName, "txtName"); this.txtName.Name = "txtName"; // lblTitle resources.ApplyResources(this.lblTitle, "lblTitle"); this.lblTitle.Name = "lblTitle"; // txtDescription resources.ApplyResources(this.txtDescription, "txtDescription"); this.txtDescription.Name = "txtDescription"; // picture1 this.picture1.DataField = "Photo"; resources.ApplyResources(this.picture1, "picture1"); this.picture1.ImageData = null; this.picture1.Name = "picture1"; // Detail this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtEmployeeID, this.txtTitle, this.txtHireDate, this.txtAddress, this.txtCity, this.txtRegion, this.txtPostalCode, this.txtCountry, this.txtHomePhone, this.txtExtension, this.txtNotes, this.lblTitle2, this.lblAddress, this.lblCityRegion, this.lblPostalCode, this.lblCountry, this.lblExtension, this.lblHomePhone, this.lblHireDate, this.lblNotes, this.lblID, this.lblBirthDate, this.txtBirthDate, this.txtName, this.picture1 }); this.Detail.Height = 2.575333F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; this.Detail.BeforePrint += new System.EventHandler(this.Detail_BeforePrint); // PageHeader this.PageHeader.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(224))))); this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblTitle, this.txtDescription }); this.PageHeader.Height = 0.5625F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Height = 0F; this.PageFooter.Name = "PageFooter"; // EmployeeProfiles this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB"; oleDBDataSource1.SQL = "SELECT * FROM employees ORDER BY LastName, FirstName"; this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6F; this.Sections.Add(this.PageHeader); this.Sections.Add(this.Detail); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); this.FetchData += new GrapeCity.ActiveReports.SectionReport.FetchEventHandler(this.EmployeeProfiles_FetchData); this.ReportStart += new System.EventHandler(this.EmployeeProfiles_ReportStart); this.DataInitialize += new System.EventHandler(this.EmployeeProfiles_DataInitialize); ((System.ComponentModel.ISupportInitialize)(this.txtEmployeeID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTitle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtHireDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPostalCode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtHomePhone)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtExtension)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtNotes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblCityRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblPostalCode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblCountry)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblExtension)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblHomePhone)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblHireDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNotes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblBirthDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtBirthDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDescription)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picture1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rptDesignChild)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtCustomerID1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCompanyName1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtContactName1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCountry1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtAddress1 = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); ((System.ComponentModel.ISupportInitialize)(this.txtCustomerID1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtCustomerID1 this.txtCustomerID1.CanShrink = true; this.txtCustomerID1.DataField = "CustomerID"; resources.ApplyResources(this.txtCustomerID1, "txtCustomerID1"); this.txtCustomerID1.Name = "txtCustomerID1"; // txtCompanyName1 this.txtCompanyName1.CanShrink = true; this.txtCompanyName1.DataField = "CompanyName"; resources.ApplyResources(this.txtCompanyName1, "txtCompanyName1"); this.txtCompanyName1.Name = "txtCompanyName1"; // txtContactName1 this.txtContactName1.CanShrink = true; this.txtContactName1.DataField = "ContactName"; resources.ApplyResources(this.txtContactName1, "txtContactName1"); this.txtContactName1.Name = "txtContactName1"; // txtCountry1 this.txtCountry1.CanShrink = true; this.txtCountry1.DataField = "Country"; resources.ApplyResources(this.txtCountry1, "txtCountry1"); this.txtCountry1.Name = "txtCountry1"; // txtAddress1 this.txtAddress1.CanShrink = true; this.txtAddress1.DataField = "Address"; resources.ApplyResources(this.txtAddress1, "txtAddress1"); this.txtAddress1.Name = "txtAddress1"; // Detail this.Detail.CanShrink = true; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtCustomerID1, this.txtCompanyName1, this.txtContactName1, this.txtCountry1, this.txtAddress1 }); this.Detail.Height = 0.375F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // rptDesignChild oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB;Persist Security Info=False"; oleDBDataSource1.SQL = "Select * from Customers Order By Val(CustomerID)"; this.DataSource = oleDBDataSource1; this.MasterReport = false; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.Sections.Add(this.Detail); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-style: normal; text-decoration: none; font-weight: normal; font-size: 10pt; " + "color: Black; font-family: MS UI Gothic; ddo-char-set: 186", "Normal")); ((System.ComponentModel.ISupportInitialize)(this.txtCustomerID1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EmployeeSales)); GrapeCity.ActiveReports.Chart.ChartArea chartArea1 = new GrapeCity.ActiveReports.Chart.ChartArea(); GrapeCity.ActiveReports.Chart.Axis axis1 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis2 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis3 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis4 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Chart.Axis axis5 = new GrapeCity.ActiveReports.Chart.Axis(); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); GrapeCity.ActiveReports.Chart.Legend legend1 = new GrapeCity.ActiveReports.Chart.Legend(); GrapeCity.ActiveReports.Chart.Title title1 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Title title2 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Series series1 = new GrapeCity.ActiveReports.Chart.Series(); GrapeCity.ActiveReports.Chart.Title title3 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Chart.Title title4 = new GrapeCity.ActiveReports.Chart.Title(); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource2 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtEmployeeName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtSales = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblTitle = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTotalSales = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblDate = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtTotalSales = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.chtSales = new GrapeCity.ActiveReports.SectionReportModel.ChartControl(); this.lblEmployeeName = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblSales = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.ReportHeader = new GrapeCity.ActiveReports.SectionReportModel.ReportHeader(); this.ReportFooter = new GrapeCity.ActiveReports.SectionReportModel.ReportFooter(); this.GroupHeader1 = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.GroupFooter1 = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtEmployeeName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSales)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalSales)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalSales)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chtSales)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblEmployeeName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSales)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtEmployeeName this.txtEmployeeName.CanGrow = false; this.txtEmployeeName.DataField = "EmployeeName"; resources.ApplyResources(this.txtEmployeeName, "txtEmployeeName"); this.txtEmployeeName.Name = "txtEmployeeName"; // txtSales this.txtSales.CanGrow = false; this.txtSales.DataField = "Sales"; resources.ApplyResources(this.txtSales, "txtSales"); this.txtSales.Name = "txtSales"; // lblTitle resources.ApplyResources(this.lblTitle, "lblTitle"); this.lblTitle.Name = "lblTitle"; // lblTotalSales resources.ApplyResources(this.lblTotalSales, "lblTotalSales"); this.lblTotalSales.Name = "lblTotalSales"; // lblDate resources.ApplyResources(this.lblDate, "lblDate"); this.lblDate.Name = "lblDate"; // txtTotalSales this.txtTotalSales.CanGrow = false; this.txtTotalSales.DataField = "Sales"; resources.ApplyResources(this.txtTotalSales, "txtTotalSales"); this.txtTotalSales.Name = "txtTotalSales"; this.txtTotalSales.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.GrandTotal; // chtSales this.chtSales.AutoRefresh = true; this.chtSales.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Color.White, System.Drawing.Color.Black); axis1.AntiAliasMode = GrapeCity.ActiveReports.Chart.Graphics.AntiAliasMode.Both; axis1.AxisType = GrapeCity.ActiveReports.Chart.AxisType.Categorical; axis1.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.White, new System.Drawing.Font("Arial", 9F), -50F); axis1.LabelsGap = 0; axis1.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis1.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White, 3), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White, 3, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 1D, 0F, false); axis1.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis1.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.White, new System.Drawing.Font("Arial", 10F)); axis2.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis2.LabelsGap = 0; axis2.LabelsVisible = false; axis2.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis2.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis2.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis2.Position = 0D; axis2.TickOffset = 0D; axis2.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis2.Visible = false; axis3.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis3.LabelsGap = 0; axis3.LabelsVisible = false; axis3.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Black, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis3.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, true); axis3.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis3.Position = 0D; axis3.SmartLabels = false; axis3.TickOffset = 0D; axis3.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F), 90F); axis4.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis4.LabelsGap = 0; axis4.LabelsVisible = false; axis4.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis4.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis4.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis4.Position = 0D; axis4.TickOffset = 0D; axis4.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis4.Visible = false; axis5.LabelFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis5.LabelsGap = 0; axis5.LabelsVisible = false; axis5.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None); axis5.MajorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis5.MinorTick = new GrapeCity.ActiveReports.Chart.Tick(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0D, 0F, false); axis5.Position = 0D; axis5.TickOffset = 0D; axis5.TitleFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); axis5.Visible = false; chartArea1.Axes.AddRange(new GrapeCity.ActiveReports.Chart.AxisBase[] { axis1, axis2, axis3, axis4, axis5 }); chartArea1.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched); chartArea1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); chartArea1.Light = new GrapeCity.ActiveReports.Chart.Light(new GrapeCity.ActiveReports.Chart.Graphics.Point3d(10F, 40F, 20F), GrapeCity.ActiveReports.Chart.LightType.InfiniteDirectional, 0.37F); chartArea1.Name = "defaultArea"; chartArea1.Projection = new GrapeCity.ActiveReports.Chart.Projection(GrapeCity.ActiveReports.Chart.Graphics.ProjectionType.Orthogonal, 0.3F, 0.3F); chartArea1.WallXY = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched)); chartArea1.WallXZ = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(System.Drawing.Color.Gray)); chartArea1.WallYZ = new GrapeCity.ActiveReports.Chart.PlaneItem(new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched)); chartArea1.ZDepthRatio = 0.4F; this.chtSales.ChartAreas.AddRange(new GrapeCity.ActiveReports.Chart.ChartArea[] { chartArea1 }); this.chtSales.ChartBorder = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); this.chtSales.ColorPalette = GrapeCity.ActiveReports.Chart.ColorPalette.Confetti; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB;Persist Security Info=False"; oleDBDataSource1.SQL = resources.GetString("oleDBDataSource1.SQL"); this.chtSales.DataSource = oleDBDataSource1; resources.ApplyResources(this.chtSales, "chtSales"); this.chtSales.ImageType = GrapeCity.ActiveReports.SectionReportModel.ImageTypes.PNG; legend1.Alignment = GrapeCity.ActiveReports.Chart.Alignment.Right; legend1.Backdrop = new GrapeCity.ActiveReports.Chart.BackdropItem(System.Drawing.Color.White, ((byte)(128))); legend1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(), 0, System.Drawing.Color.Black); legend1.DockArea = chartArea1; title1.Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched); title1.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title1.DockArea = null; title1.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title1.Name = ""; title1.Text = ""; legend1.Footer = title1; title2.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White, 2), 0, System.Drawing.Color.Black); title2.DockArea = null; title2.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title2.Name = ""; title2.Text = "Legend"; legend1.Header = title2; legend1.LabelsFont = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); legend1.Name = "defaultLegend"; legend1.Visible = false; this.chtSales.Legends.AddRange(new GrapeCity.ActiveReports.Chart.Legend[] { legend1 }); this.chtSales.Name = "chtSales"; series1.AxisX = axis1; series1.AxisY = axis3; series1.ChartArea = chartArea1; series1.Legend = legend1; series1.Name = "Series1"; series1.Properties = new GrapeCity.ActiveReports.Chart.CustomProperties(new GrapeCity.ActiveReports.Chart.KeyValuePair[] { new GrapeCity.ActiveReports.Chart.KeyValuePair("Backdrop", new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, System.Drawing.Color.Red, System.Drawing.Color.Gray)), new GrapeCity.ActiveReports.Chart.KeyValuePair("BorderLine", new GrapeCity.ActiveReports.Chart.Graphics.Line()), new GrapeCity.ActiveReports.Chart.KeyValuePair("Marker", new GrapeCity.ActiveReports.Chart.Marker(10, GrapeCity.ActiveReports.Chart.MarkerStyle.None, new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(), new GrapeCity.ActiveReports.Chart.Graphics.Line(), new GrapeCity.ActiveReports.Chart.LabelInfo(new GrapeCity.ActiveReports.Chart.Graphics.Line(), new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(System.Drawing.Color.White, ((byte)(200))), new GrapeCity.ActiveReports.Chart.FontInfo(), "{Value:C}", GrapeCity.ActiveReports.Chart.Alignment.Top), GrapeCity.ActiveReports.Chart.Graphics.AntiAliasMode.Both)), new GrapeCity.ActiveReports.Chart.KeyValuePair("Tooltip", new GrapeCity.ActiveReports.Chart.LabelInfo()) }); series1.Type = GrapeCity.ActiveReports.Chart.ChartType.Bar3D; series1.ValueMembersY = "Sales"; series1.ValueMemberX = "EmployeeName"; this.chtSales.Series.AddRange(new GrapeCity.ActiveReports.Chart.Series[] { series1 }); title3.Alignment = GrapeCity.ActiveReports.Chart.Alignment.Center; title3.Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(System.Drawing.Color.White, ((byte)(81))); title3.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title3.DockArea = chartArea1; title3.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold)); title3.Name = "header"; title3.Text = "Sales by Employee for 1997"; title4.Border = new GrapeCity.ActiveReports.Chart.Border(new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 0, System.Drawing.Color.Black); title4.DockArea = chartArea1; title4.Docking = GrapeCity.ActiveReports.Chart.DockType.Bottom; title4.Font = new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.Black, new System.Drawing.Font("Microsoft Sans Serif", 8F)); title4.Name = "Title1"; title4.Text = ""; this.chtSales.Titles.AddRange(new GrapeCity.ActiveReports.Chart.Title[] { title3, title4 }); this.chtSales.UIOptions = GrapeCity.ActiveReports.Chart.UIOptions.ForceHitTesting; // lblEmployeeName resources.ApplyResources(this.lblEmployeeName, "lblEmployeeName"); this.lblEmployeeName.Name = "lblEmployeeName"; // lblSales resources.ApplyResources(this.lblSales, "lblSales"); this.lblSales.Name = "lblSales"; // Detail this.Detail.CanGrow = false; this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtEmployeeName, this.txtSales }); this.Detail.Height = 0.2076389F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // ReportHeader this.ReportHeader.CanGrow = false; this.ReportHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblTitle, this.lblTotalSales, this.lblDate, this.txtTotalSales, this.chtSales }); this.ReportHeader.Height = 3.9375F; this.ReportHeader.Name = "ReportHeader"; // ReportFooter this.ReportFooter.CanGrow = false; this.ReportFooter.Height = 0F; this.ReportFooter.KeepTogether = true; this.ReportFooter.Name = "ReportFooter"; // GroupHeader1 this.GroupHeader1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.GroupHeader1.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblEmployeeName, this.lblSales }); this.GroupHeader1.Name = "GroupHeader1"; // GroupFooter1 this.GroupFooter1.Height = 0F; this.GroupFooter1.Name = "GroupFooter1"; // EmployeeSales this.MasterReport = false; oleDBDataSource2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\NWIND.MDB;Persist Security Info=False"; oleDBDataSource2.SQL = resources.GetString("oleDBDataSource2.SQL"); this.DataSource = oleDBDataSource2; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Script = resources.GetString("$this.Script"); this.Sections.Add(this.ReportHeader); this.Sections.Add(this.GroupHeader1); this.Sections.Add(this.Detail); this.Sections.Add(this.GroupFooter1); this.Sections.Add(this.ReportFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); this.ReportStart += new System.EventHandler(this.EmployeeSales_ReportStart); ((System.ComponentModel.ISupportInitialize)(this.txtEmployeeName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSales)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTotalSales)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalSales)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chtSales)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblEmployeeName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblSales)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void Invoice_ReportStart(object sender, EventArgs e) { GrapeCity.ActiveReports.Data.OleDBDataSource ds = (GrapeCity.ActiveReports.Data.OleDBDataSource) this.DataSource; ds.SQL = "SELECT * FROM Invoices WHERE Country = 'USA'"; }
public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Letter)); GrapeCity.ActiveReports.Data.OleDBDataSource oleDBDataSource1 = new GrapeCity.ActiveReports.Data.OleDBDataSource(); this.txtOrderID = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtOrderDate = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtSubtotal = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.imgLogo = new GrapeCity.ActiveReports.SectionReportModel.Picture(); this.lblNorthwind = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblTraders = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lneTitle = new GrapeCity.ActiveReports.SectionReportModel.Line(); this.lblNWAddress = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.txtTotalOrders = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblOrderID = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblOrderDate = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblAmount = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.rtbMain = new GrapeCity.ActiveReports.SectionReportModel.RichTextBox(); this.txtCompanyName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtContactName = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtAddress = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCity = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtRegion = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtCountry = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.txtPostalCode = new GrapeCity.ActiveReports.SectionReportModel.TextBox(); this.lblYours = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.lblNTAP = new GrapeCity.ActiveReports.SectionReportModel.Label(); this.Detail = new GrapeCity.ActiveReports.SectionReportModel.Detail(); this.PageHeader = new GrapeCity.ActiveReports.SectionReportModel.PageHeader(); this.PageFooter = new GrapeCity.ActiveReports.SectionReportModel.PageFooter(); this.ghCustomerID = new GrapeCity.ActiveReports.SectionReportModel.GroupHeader(); this.gfCustomerID = new GrapeCity.ActiveReports.SectionReportModel.GroupFooter(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSubtotal)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNorthwind)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTraders)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalOrders)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblAmount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCity)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPostalCode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblYours)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNTAP)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // txtOrderID this.txtOrderID.DataField = "OrderID"; resources.ApplyResources(this.txtOrderID, "txtOrderID"); this.txtOrderID.Name = "txtOrderID"; // txtOrderDate this.txtOrderDate.DataField = "OrderDate"; resources.ApplyResources(this.txtOrderDate, "txtOrderDate"); this.txtOrderDate.Name = "txtOrderDate"; // txtSubtotal this.txtSubtotal.DataField = "Subtotal"; resources.ApplyResources(this.txtSubtotal, "txtSubtotal"); this.txtSubtotal.Name = "txtSubtotal"; // imgLogo this.imgLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); resources.ApplyResources(this.imgLogo, "imgLogo"); this.imgLogo.ImageData = ((System.IO.Stream)(resources.GetObject("imgLogo.ImageData"))); this.imgLogo.LineColor = System.Drawing.Color.Black; this.imgLogo.LineWeight = 1F; this.imgLogo.Name = "imgLogo"; this.imgLogo.SizeMode = GrapeCity.ActiveReports.SectionReportModel.SizeModes.Zoom; // lblNorthwind resources.ApplyResources(this.lblNorthwind, "lblNorthwind"); this.lblNorthwind.Name = "lblNorthwind"; // lblTraders resources.ApplyResources(this.lblTraders, "lblTraders"); this.lblTraders.Name = "lblTraders"; // lneTitle resources.ApplyResources(this.lneTitle, "lneTitle"); this.lneTitle.LineWeight = 10F; this.lneTitle.Name = "lneTitle"; this.lneTitle.X1 = 5.1F; this.lneTitle.X2 = 6.375F; this.lneTitle.Y1 = 0.4375F; this.lneTitle.Y2 = 0.4375F; // lblNWAddress resources.ApplyResources(this.lblNWAddress, "lblNWAddress"); this.lblNWAddress.Name = "lblNWAddress"; // txtTotalOrders this.txtTotalOrders.DataField = "Subtotal"; resources.ApplyResources(this.txtTotalOrders, "txtTotalOrders"); this.txtTotalOrders.Name = "txtTotalOrders"; this.txtTotalOrders.SummaryType = GrapeCity.ActiveReports.SectionReportModel.SummaryType.SubTotal; this.txtTotalOrders.Visible = false; // lblOrderID resources.ApplyResources(this.lblOrderID, "lblOrderID"); this.lblOrderID.Name = "lblOrderID"; // lblOrderDate resources.ApplyResources(this.lblOrderDate, "lblOrderDate"); this.lblOrderDate.Name = "lblOrderDate"; // lblAmount resources.ApplyResources(this.lblAmount, "lblAmount"); this.lblAmount.Name = "lblAmount"; // rtbMain this.rtbMain.AutoReplaceFields = true; this.rtbMain.Font = new System.Drawing.Font("Arial", 10F); resources.ApplyResources(this.rtbMain, "rtbMain"); this.rtbMain.Name = "rtbMain"; // txtCompanyName this.txtCompanyName.CanGrow = false; this.txtCompanyName.DataField = "CompanyName"; resources.ApplyResources(this.txtCompanyName, "txtCompanyName"); this.txtCompanyName.Name = "txtCompanyName"; this.txtCompanyName.Visible = false; // txtContactName this.txtContactName.CanGrow = false; this.txtContactName.DataField = "ContactName"; resources.ApplyResources(this.txtContactName, "txtContactName"); this.txtContactName.Name = "txtContactName"; this.txtContactName.Visible = false; // txtAddress this.txtAddress.CanGrow = false; this.txtAddress.DataField = "Address"; resources.ApplyResources(this.txtAddress, "txtAddress"); this.txtAddress.Name = "txtAddress"; this.txtAddress.Visible = false; // txtCity this.txtCity.CanGrow = false; this.txtCity.DataField = "City"; resources.ApplyResources(this.txtCity, "txtCity"); this.txtCity.Name = "txtCity"; this.txtCity.Visible = false; // txtRegion this.txtRegion.CanGrow = false; this.txtRegion.DataField = "Region"; resources.ApplyResources(this.txtRegion, "txtRegion"); this.txtRegion.Name = "txtRegion"; this.txtRegion.Visible = false; // txtCountry this.txtCountry.CanGrow = false; this.txtCountry.DataField = "Country"; resources.ApplyResources(this.txtCountry, "txtCountry"); this.txtCountry.Name = "txtCountry"; this.txtCountry.Visible = false; // txtPostalCode this.txtPostalCode.CanGrow = false; this.txtPostalCode.DataField = "PostalCode"; resources.ApplyResources(this.txtPostalCode, "txtPostalCode"); this.txtPostalCode.Name = "txtPostalCode"; this.txtPostalCode.Visible = false; // lblYours resources.ApplyResources(this.lblYours, "lblYours"); this.lblYours.Name = "lblYours"; // lblNTAP resources.ApplyResources(this.lblNTAP, "lblNTAP"); this.lblNTAP.Name = "lblNTAP"; // Detail this.Detail.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtOrderID, this.txtOrderDate, this.txtSubtotal }); this.Detail.Height = 0.1979167F; this.Detail.KeepTogether = true; this.Detail.Name = "Detail"; // PageHeader this.PageHeader.CanGrow = false; this.PageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.imgLogo, this.lblNorthwind, this.lblTraders, this.lneTitle }); this.PageHeader.Height = 0.9375F; this.PageHeader.Name = "PageHeader"; // PageFooter this.PageFooter.CanGrow = false; this.PageFooter.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblNWAddress }); this.PageFooter.Name = "PageFooter"; // ghCustomerID this.ghCustomerID.CanShrink = true; this.ghCustomerID.ColumnLayout = false; this.ghCustomerID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.txtTotalOrders, this.lblOrderID, this.lblOrderDate, this.lblAmount, this.rtbMain, this.txtCompanyName, this.txtContactName, this.txtAddress, this.txtCity, this.txtRegion, this.txtCountry, this.txtPostalCode }); this.ghCustomerID.DataField = "CustomerID"; this.ghCustomerID.Height = 2.510417F; this.ghCustomerID.KeepTogether = true; this.ghCustomerID.Name = "ghCustomerID"; this.ghCustomerID.Format += new System.EventHandler(this.ghCustomerID_Format); this.ghCustomerID.BeforePrint += new System.EventHandler(this.ghCustomerID_BeforePrint); // gfCustomerID this.gfCustomerID.ColumnLayout = false; this.gfCustomerID.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] { this.lblYours, this.lblNTAP }); this.gfCustomerID.Height = 0.7381945F; this.gfCustomerID.KeepTogether = true; this.gfCustomerID.Name = "gfCustomerID"; this.gfCustomerID.NewPage = GrapeCity.ActiveReports.SectionReportModel.NewPage.After; // Letter this.MasterReport = false; oleDBDataSource1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\evan.warren\\Documents\\GrapeCity Samples\\ActiveReports 11\\Data\\Nwind.mdb;Persist Security Info=False"; oleDBDataSource1.SQL = resources.GetString("oleDBDataSource1.SQL"); this.DataSource = oleDBDataSource1; this.PageSettings.PaperHeight = 11F; this.PageSettings.PaperWidth = 8.5F; this.PrintWidth = 6.5F; this.Sections.Add(this.PageHeader); this.Sections.Add(this.ghCustomerID); this.Sections.Add(this.Detail); this.Sections.Add(this.gfCustomerID); this.Sections.Add(this.PageFooter); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" + "l; font-size: 10pt; color: Black; ddo-char-set: 186", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 16pt; font-style: normal; font-weight: bold", "Heading1", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-style: italic; font-weight: b" + "old", "Heading2", "Normal")); this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-size: 13pt; font-style: normal; font-weight: bold", "Heading3", "Normal")); ((System.ComponentModel.ISupportInitialize)(this.txtOrderID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOrderDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSubtotal)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imgLogo)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNorthwind)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTraders)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNWAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTotalOrders)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblOrderDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblAmount)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCompanyName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtContactName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCity)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtCountry)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPostalCode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblYours)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblNTAP)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }