private void CorrectConnectionString(C1.C1Report.C1Report rep) { string cs = rep.DataSource.ConnectionString; // int i = cs.IndexOf("Data Source", 0, StringComparison.OrdinalIgnoreCase); if (i < 0) { return; } while (i < cs.Length && cs[i] != '=') { i++; } if (i >= cs.Length) { return; } int j = i; while (i < cs.Length && cs[i] != ';') { i++; } // string mdbName = cs.Substring(j + 1, i - j - 1).Trim(); if (mdbName.Length <= 0) { return; } mdbName = System.IO.Path.GetFileName(mdbName); if (string.Compare(mdbName, "nwind.mdb", true) == 0) { mdbName = "c1nwind.mdb"; } // cs = cs.Substring(0, j + 1) + Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @"\ComponentOne Samples\Common\" + mdbName + cs.Substring(i); rep.DataSource.ConnectionString = cs; // foreach (C1.C1Report.Field field in rep.Fields) { if (field.Subreport != null) { CorrectConnectionString(field.Subreport); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this._flex = new C1.Win.C1FlexGrid.C1FlexGrid(); this._btnRender = new System.Windows.Forms.Button(); this._c1r = new C1.C1Report.C1Report(); ((System.ComponentModel.ISupportInitialize)(this._flex)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); this.SuspendLayout(); // // _flex // this._flex.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this._flex.ColumnInfo = "10,1,0,0,0,85,Columns:"; this._flex.Location = new System.Drawing.Point(8, 8); this._flex.Name = "_flex"; this._flex.Size = new System.Drawing.Size(440, 248); this._flex.Styles = new C1.Win.C1FlexGrid.CellStyleCollection(@"Fixed{BackColor:Control;ForeColor:ControlText;Border:Flat,1,ControlDark,Both;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} EmptyArea{BackColor:AppWorkspace;Border:Flat,1,ControlDarkDark,Both;} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} "); this._flex.TabIndex = 0; // // _btnRender // this._btnRender.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); this._btnRender.Location = new System.Drawing.Point(8, 264); this._btnRender.Name = "_btnRender"; this._btnRender.Size = new System.Drawing.Size(128, 32); this._btnRender.TabIndex = 1; this._btnRender.Text = "Render Report"; this._btnRender.Click += new System.EventHandler(this._btnRender_Click); // // _c1r // this._c1r.ReportName = "c1Report1"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(456, 301); this.Controls.AddRange(new System.Windows.Forms.Control[] { this._btnRender, this._flex }); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: Using C1FlexGrid as a DataSource"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._flex)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); this.ResumeLayout(false); }
/// <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(Form1)); this.button1 = new System.Windows.Forms.Button(); this._c1r = new C1.C1Report.C1Report(); this._ppv = new C1.Win.C1Preview.C1PreviewPane(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(8, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(136, 24); this.button1.TabIndex = 0; this.button1.Text = "Select XML file"; this.button1.Click += new System.EventHandler(this.button1_Click); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.ReportName = "c1Report1"; // // _ppv // this._ppv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._ppv.Location = new System.Drawing.Point(0, 45); this._ppv.Name = "_ppv"; this._ppv.Size = new System.Drawing.Size(567, 540); this._ppv.TabIndex = 1; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(567, 578); this.Controls.Add(this._ppv); this.Controls.Add(this.button1); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: XML data sources"; ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this._c1r = new C1.C1Report.C1Report(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportName = "c1Report1"; // // button1 // this.button1.Location = new System.Drawing.Point(16, 16); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(288, 32); this.button1.TabIndex = 0; this.button1.Text = "Create Report, format with Script"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(16, 64); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(288, 32); this.button2.TabIndex = 0; this.button2.Text = "Create Report, format with Events"; this.button2.Click += new System.EventHandler(this.button2_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(320, 109); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1, this.button2 }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report Demo: Dynamic Formatting"; ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); this.ResumeLayout(false); }
/// <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(Form1)); this._c1r = new C1.C1Report.C1Report(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.ReportName = "Customer Labels"; // // button1 // this.button1.Location = new System.Drawing.Point(12, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(298, 56); this.button1.TabIndex = 0; this.button1.Text = "Render report using ADO Recordset as data source"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(12, 70); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(298, 56); this.button2.TabIndex = 0; this.button2.Text = "Render report using ADO Recordset as data source\r\nin C1PrintPreviewDialog"; this.button2.Click += new System.EventHandler(this.button2_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(322, 135); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: ADODB Recordsets"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 设置预览的报表文档(一般是XML的打印格式文档) /// </summary> /// <param name="reportFileName">报表定义文件名如:KDSUI.PrintTemplate.SD.SEDo.xml</param> /// <param name="reportTitle">报表标题</param> /// <param name="xmlRecordset">报表数据源</param> /// <param name="lPrintMode">打印界面模式</param> /// <param name="dllType">嵌入式报表格式文档的类型名(完整)</param> public void SetPrintDocumnet(string reportFileName, string reportTitle, object xmlRecordset, bool lPrintMode, Type dllType) { XmlDocument doc = new XmlDocument(); doc.LoadXml(GetStreamString(Assembly.GetAssembly(dllType).GetManifestResourceStream(reportFileName))); c1Report1 = new C1Report(); c1Report1.Load(doc, reportTitle); c1Report1.DataSource.Recordset = xmlRecordset; c1PrintPreviewControl1.Document = c1Report1.Document; if (lPrintMode) { c1PrintPreviewControl1.PreviewPane.Print(); } if (!lPrintMode) { c1PrintPreviewControl1.ToolBars.File.Print.Visible = false; } }
/// <summary> /// 设置预览的报表文档(一般是XML的打印格式文档) /// </summary> /// <param name="reportFileName">报表定义文件名如:Data\SEDo.xml</param> /// <param name="reportTitle">报表标题</param> /// <param name="xmlRecordset">报表数据源</param> public void SetPrintDocument(string reportFileName, string reportTitle, object xmlRecordset, bool lPrintMode) { if (!File.Exists(reportFileName)) { throw new Exception("报表格式文件不存在:" + reportFileName); } XmlDocument doc = new XmlDocument(); doc.Load(reportFileName); c1Report1 = new C1Report(); c1Report1.Load(doc, reportTitle); c1Report1.DataSource.Recordset = xmlRecordset; c1PrintPreviewControl1.Document = c1Report1.Document; if (lPrintMode) { c1PrintPreviewControl1.PreviewPane.Print(); } if (!lPrintMode) { c1PrintPreviewControl1.ToolBars.File.Print.Visible = false; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this._c1r = new C1.C1Report.C1Report(); this._tb = new System.Windows.Forms.ToolBar(); this._tbFirst = new System.Windows.Forms.ToolBarButton(); this._tbPrev = new System.Windows.Forms.ToolBarButton(); this._tbNext = new System.Windows.Forms.ToolBarButton(); this._tbLast = new System.Windows.Forms.ToolBarButton(); this._tbSep = new System.Windows.Forms.ToolBarButton(); this._tbActual = new System.Windows.Forms.ToolBarButton(); this._tbPage = new System.Windows.Forms.ToolBarButton(); this._tbTwoPages = new System.Windows.Forms.ToolBarButton(); this._il = new System.Windows.Forms.ImageList(this.components); this._status = new System.Windows.Forms.StatusBar(); this._ppv = new C1.Win.C1Preview.C1PreviewPane(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.EndReport += new System.EventHandler(this._c1r_EndReport); this._c1r.StartPage += new C1.C1Report.ReportEventHandler(this._c1r_StartPage); // // _tb // this._tb.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this._tb.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this._tbFirst, this._tbPrev, this._tbNext, this._tbLast, this._tbSep, this._tbActual, this._tbPage, this._tbTwoPages }); this._tb.DropDownArrows = true; this._tb.ImageList = this._il; this._tb.Location = new System.Drawing.Point(0, 0); this._tb.Name = "_tb"; this._tb.ShowToolTips = true; this._tb.Size = new System.Drawing.Size(738, 28); this._tb.TabIndex = 2; this._tb.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._tb_ButtonClick); // // _tbFirst // this._tbFirst.ImageIndex = 0; this._tbFirst.Name = "_tbFirst"; this._tbFirst.ToolTipText = "First Page"; // // _tbPrev // this._tbPrev.ImageIndex = 1; this._tbPrev.Name = "_tbPrev"; this._tbPrev.ToolTipText = "Previous Page"; // // _tbNext // this._tbNext.ImageIndex = 2; this._tbNext.Name = "_tbNext"; this._tbNext.ToolTipText = "Next Page"; // // _tbLast // this._tbLast.ImageIndex = 3; this._tbLast.Name = "_tbLast"; this._tbLast.ToolTipText = "Last Page"; // // _tbSep // this._tbSep.Name = "_tbSep"; this._tbSep.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // _tbActual // this._tbActual.ImageIndex = 4; this._tbActual.Name = "_tbActual"; this._tbActual.ToolTipText = "Actual Size"; // // _tbPage // this._tbPage.ImageIndex = 5; this._tbPage.Name = "_tbPage"; this._tbPage.ToolTipText = "Whole Page"; // // _tbTwoPages // this._tbTwoPages.ImageIndex = 6; this._tbTwoPages.Name = "_tbTwoPages"; this._tbTwoPages.ToolTipText = "Two Pages"; // // _il // this._il.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_il.ImageStream"))); this._il.TransparentColor = System.Drawing.Color.Red; this._il.Images.SetKeyName(0, ""); this._il.Images.SetKeyName(1, ""); this._il.Images.SetKeyName(2, ""); this._il.Images.SetKeyName(3, ""); this._il.Images.SetKeyName(4, ""); this._il.Images.SetKeyName(5, ""); this._il.Images.SetKeyName(6, ""); // // _status // this._status.Location = new System.Drawing.Point(0, 551); this._status.Name = "_status"; this._status.Size = new System.Drawing.Size(738, 19); this._status.TabIndex = 3; // // _ppv // this._ppv.Dock = System.Windows.Forms.DockStyle.Fill; this._ppv.Location = new System.Drawing.Point(0, 28); this._ppv.Name = "_ppv"; this._ppv.Size = new System.Drawing.Size(738, 523); this._ppv.TabIndex = 0; this._ppv.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.ActualSize; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(738, 570); this.Controls.Add(this._ppv); this.Controls.Add(this._tb); this.Controls.Add(this._status); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: Bind to Hierarchical Dataset"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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(Form1)); this.btnCustomers = new System.Windows.Forms.Button(); this.btnEmployees = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.Panel1 = new System.Windows.Forms.Panel(); this._ppv = new C1.Win.C1Preview.C1PreviewPane(); this._toolBar = new System.Windows.Forms.ToolBar(); this.tbbtnFirst = new System.Windows.Forms.ToolBarButton(); this.tbbtnPrev = new System.Windows.Forms.ToolBarButton(); this.tbbtnNext = new System.Windows.Forms.ToolBarButton(); this.tbbtnLast = new System.Windows.Forms.ToolBarButton(); this.tbbtnSep = new System.Windows.Forms.ToolBarButton(); this.tbbtnZoom = new System.Windows.Forms.ToolBarButton(); this.mnuZoom = new System.Windows.Forms.ContextMenu(); this._mz100 = new System.Windows.Forms.MenuItem(); this._mzPage = new System.Windows.Forms.MenuItem(); this._mzTwoPages = new System.Windows.Forms.MenuItem(); this._mzThumbnails = new System.Windows.Forms.MenuItem(); this.chkGroup = new System.Windows.Forms.CheckBox(); this._btnCustomers = new System.Windows.Forms.Button(); this._btnEmployees = new System.Windows.Forms.Button(); this._btnSave = new System.Windows.Forms.Button(); this.c1r = new C1.C1Report.C1Report(); this.status = new System.Windows.Forms.StatusBar(); this.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1r)).BeginInit(); this.SuspendLayout(); // // btnCustomers // this.btnCustomers.Location = new System.Drawing.Point(26, -64); this.btnCustomers.Name = "btnCustomers"; this.btnCustomers.Size = new System.Drawing.Size(80, 29); this.btnCustomers.TabIndex = 7; this.btnCustomers.Text = "Customers"; // // btnEmployees // this.btnEmployees.Location = new System.Drawing.Point(-62, -64); this.btnEmployees.Name = "btnEmployees"; this.btnEmployees.Size = new System.Drawing.Size(80, 29); this.btnEmployees.TabIndex = 5; this.btnEmployees.Text = "Employees"; // // btnSave // this.btnSave.Location = new System.Drawing.Point(234, -64); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(80, 29); this.btnSave.TabIndex = 6; this.btnSave.Text = "Save"; // // Panel1 // this.Panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Panel1.Controls.Add(this._ppv); this.Panel1.Controls.Add(this._toolBar); this.Panel1.Location = new System.Drawing.Point(8, 40); this.Panel1.Name = "Panel1"; this.Panel1.Size = new System.Drawing.Size(489, 351); this.Panel1.TabIndex = 8; // // _ppv // this._ppv.Dock = System.Windows.Forms.DockStyle.Fill; this._ppv.Location = new System.Drawing.Point(0, 36); this._ppv.Name = "_ppv"; this._ppv.Size = new System.Drawing.Size(485, 311); this._ppv.TabIndex = 6; this._ppv.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.ActualSize; // // _toolBar // this._toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this._toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbbtnFirst, this.tbbtnPrev, this.tbbtnNext, this.tbbtnLast, this.tbbtnSep, this.tbbtnZoom }); this._toolBar.ButtonSize = new System.Drawing.Size(0, 22); this._toolBar.DropDownArrows = true; this._toolBar.Location = new System.Drawing.Point(0, 0); this._toolBar.Name = "_toolBar"; this._toolBar.ShowToolTips = true; this._toolBar.Size = new System.Drawing.Size(485, 36); this._toolBar.TabIndex = 5; this._toolBar.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this._toolBar.Wrappable = false; this._toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._toolBar_ButtonClick); // // tbbtnFirst // this.tbbtnFirst.Name = "tbbtnFirst"; this.tbbtnFirst.Text = "<<"; // // tbbtnPrev // this.tbbtnPrev.Name = "tbbtnPrev"; this.tbbtnPrev.Text = "<"; // // tbbtnNext // this.tbbtnNext.Name = "tbbtnNext"; this.tbbtnNext.Text = ">"; // // tbbtnLast // this.tbbtnLast.Name = "tbbtnLast"; this.tbbtnLast.Text = ">>"; // // tbbtnSep // this.tbbtnSep.Name = "tbbtnSep"; this.tbbtnSep.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbtnZoom // this.tbbtnZoom.DropDownMenu = this.mnuZoom; this.tbbtnZoom.Name = "tbbtnZoom"; this.tbbtnZoom.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.tbbtnZoom.Text = "Zoom"; // // mnuZoom // this.mnuZoom.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this._mz100, this._mzPage, this._mzTwoPages, this._mzThumbnails }); // // _mz100 // this._mz100.Index = 0; this._mz100.Text = "100%"; this._mz100.Click += new System.EventHandler(this._zoom_Click); // // _mzPage // this._mzPage.Index = 1; this._mzPage.Text = "Full Page"; this._mzPage.Click += new System.EventHandler(this._zoom_Click); // // _mzTwoPages // this._mzTwoPages.Index = 2; this._mzTwoPages.Text = "Two Pages"; this._mzTwoPages.Click += new System.EventHandler(this._zoom_Click); // // _mzThumbnails // this._mzThumbnails.Index = 3; this._mzThumbnails.Text = "Thumbnails"; this._mzThumbnails.Click += new System.EventHandler(this._zoom_Click); // // chkGroup // this.chkGroup.Location = new System.Drawing.Point(200, 12); this.chkGroup.Name = "chkGroup"; this.chkGroup.Size = new System.Drawing.Size(96, 16); this.chkGroup.TabIndex = 12; this.chkGroup.Text = "Add Groups"; // // _btnCustomers // this._btnCustomers.Location = new System.Drawing.Point(96, 8); this._btnCustomers.Name = "_btnCustomers"; this._btnCustomers.Size = new System.Drawing.Size(80, 24); this._btnCustomers.TabIndex = 11; this._btnCustomers.Text = "Customers"; this._btnCustomers.Click += new System.EventHandler(this._btnCustomers_Click); // // _btnEmployees // this._btnEmployees.Location = new System.Drawing.Point(8, 8); this._btnEmployees.Name = "_btnEmployees"; this._btnEmployees.Size = new System.Drawing.Size(80, 24); this._btnEmployees.TabIndex = 9; this._btnEmployees.Text = "Employees"; this._btnEmployees.Click += new System.EventHandler(this._btnEmployees_Click); // // _btnSave // this._btnSave.Location = new System.Drawing.Point(304, 8); this._btnSave.Name = "_btnSave"; this._btnSave.Size = new System.Drawing.Size(80, 24); this._btnSave.TabIndex = 10; this._btnSave.Text = "Save"; this._btnSave.Click += new System.EventHandler(this._btnSave_Click); // // c1r // this.c1r.ReportDefinition = resources.GetString("c1r.ReportDefinition"); // // status // this.status.Location = new System.Drawing.Point(0, 398); this.status.Name = "status"; this.status.Size = new System.Drawing.Size(505, 22); this.status.TabIndex = 13; this.status.Text = "Ready"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(505, 420); this.Controls.Add(this.status); this.Controls.Add(this.chkGroup); this.Controls.Add(this._btnCustomers); this.Controls.Add(this._btnEmployees); this.Controls.Add(this._btnSave); this.Controls.Add(this.Panel1); this.Controls.Add(this.btnCustomers); this.Controls.Add(this.btnEmployees); this.Controls.Add(this.btnSave); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: On-the-fly Reports"; this.Panel1.ResumeLayout(false); this.Panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1r)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this._c1r = new C1.C1Report.C1Report(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this._statusBar = new System.Windows.Forms.StatusBar(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = "<!--Report *** Cross-Tab ***--><Report version=\"2.5.20043.144\"><Name>Cross-Tab</N" + "ame><DataSource><ConnectionString>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C" + ":\\Program Files\\ComponentOne Studio.NET 2.0\\Common\\NWIND.MDB;Persist Security Info=F" + "alse</ConnectionString><RecordSource>SELECT Products.ProductName, Customers.Comp" + "anyName, Year([OrderDate]) AS OrderYear, Sum([Order Details].[UnitPrice]*[Order " + "Details].[Quantity]-[Discount]) AS SaleAmount, DatePart(\"q\",[OrderDate]) AS Orde" + "rQtr\r\nFROM Products INNER JOIN (Customers INNER JOIN (Orders INNER JOIN [Order D" + "etails] ON Orders.OrderID = [Order Details].OrderID) ON Customers.CustomerID = O" + "rders.CustomerID) ON Products.ProductID = [Order Details].ProductID\r\nGROUP BY Pr" + "oducts.ProductName, Customers.CompanyName, Year([OrderDate]), DatePart(\"q\",[Orde" + "rDate])\r\nORDER BY Products.ProductName, Customers.CompanyName, Year([OrderDate])" + ";\r\n</RecordSource></DataSource><Layout><Orientation>1</Orientation></Layout><Fon" + "t><Name>Verdana</Name><Size>9</Size></Font><Groups><Group><Name>ProductName</Nam" + "e><GroupBy>ProductName</GroupBy><Sort>1</Sort><KeepTogether>2</KeepTogether></Gr" + "oup><Group><Name>CompanyName</Name><GroupBy>CompanyName</GroupBy><Sort>1</Sort><" + "KeepTogether>2</KeepTogether></Group><Group><Name>OrderYear</Name><GroupBy>Order" + "Year</GroupBy><Sort>2</Sort><KeepTogether>2</KeepTogether></Group></Groups><Sect" + "ions><Section><Name>Detail</Name><Type>0</Type><Visible>0</Visible></Section><Se" + "ction><Name>Header</Name><Type>1</Type><Height>800</Height><BackColor>11829830</" + "BackColor></Section><Section><Name>Footer</Name><Type>2</Type><Visible>0</Visibl" + "e></Section><Section><Name>PageHeader</Name><Type>3</Type><Visible>0</Visible></" + "Section><Section><Name>PageFooter</Name><Type>4</Type><Height>555</Height></Sect" + "ion><Section><Name>GroupHeader0</Name><Type>5</Type><Height>990</Height><Repeat>" + "-1</Repeat></Section><Section><Name>GroupFooter0</Name><Type>6</Type><Height>405" + "</Height><OnPrint>fContinued.Visible = false</OnPrint></Section><Section><Name>G" + "roupHeader1</Name><Type>7</Type><Visible>0</Visible><Repeat>-1</Repeat></Section" + "><Section><Name>GroupFooter1</Name><Type>8</Type><Visible>0</Visible></Section><" + "Section><Name>GroupHeader2</Name><Type>9</Type><Height>255</Height><Repeat>-1</R" + "epeat><OnPrint>fContinued.Visible = true</OnPrint></Section><Section><Name>Group" + "Footer2</Name><Type>10</Type><Visible>0</Visible></Section></Sections><Fields><F" + "ield><Name>titleLbl</Name><Section>1</Section><Text>Cross-Tab</Text><Top>200</To" + "p><Width>9360</Width><Height>600</Height><Align>6</Align><ForeColor>16777215</Fo" + "reColor><Font><Bold>-1</Bold><Name>Verdana</Name><Size>18</Size></Font></Field><" + "Field><Name>ftrLeft</Name><Section>4</Section><Text>Now()</Text><Calculated>-1</" + "Calculated><Top>255</Top><Width>4680</Width><Height>300</Height><Align>0</Align>" + "<Font><Name>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>ftrRight<" + "/Name><Section>4</Section><Text>\"Page \" & [Page] & \" of \" & [Pages]<" + "/Text><Calculated>-1</Calculated><Left>4680</Left><Top>255</Top><Width>4680</Wid" + "th><Height>300</Height><Align>2</Align><Font><Name>Verdana</Name><Size>8.25</Siz" + "e></Font></Field><Field><Name>CompanyNameLbl</Name><Section>9</Section><Text>Com" + "panyName</Text><Calculated>-1</Calculated><Left>180</Left><Width>3240</Width><He" + "ight>255</Height><Align>0</Align><HideDuplicates>-1</HideDuplicates><WordWrap>0<" + "/WordWrap><Font><Name>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name" + ">OrderYearLbl</Name><Section>9</Section><Text>OrderYear</Text><Calculated>-1</Ca" + "lculated><Left>3510</Left><Width>990</Width><Height>255</Height><Align>0</Align>" + "<WordWrap>0</WordWrap><Font><Name>Verdana</Name><Size>8.25</Size></Font></Field>" + "<Field><Name>fSales</Name><Section>9</Section><Text>sum(SaleAmount)</Text><Calcu" + "lated>-1</Calculated><Format>#,##0</Format><Left>4515</Left><Width>1350</Width><" + "Height>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Name>Verdana</Na" + "me><Size>8.25</Size></Font></Field><Field><Name>CompanyNameLbl1</Name><Section>5" + "</Section><Text>Customer</Text><Left>180</Left><Top>720</Top><Width>2460</Width>" + "<Height>255</Height><Align>3</Align><ForeColor>11119017</ForeColor><WordWrap>0</" + "WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><Size>9</Size></Font></Field><" + "Field><Name>OrderYearLbl1</Name><Section>5</Section><Text>Year</Text><Left>3420<" + "/Left><Top>720</Top><Width>1080</Width><Height>255</Height><Align>3</Align><Fore" + "Color>11119017</ForeColor><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verda" + "na</Name><Size>9</Size></Font></Field><Field><Name>SaleAmountLbl1</Name><Section" + ">5</Section><Text>Sales</Text><Left>4515</Left><Top>720</Top><Width>1350</Width>" + "<Height>255</Height><Align>5</Align><ForeColor>11119017</ForeColor><WordWrap>0</" + "WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><Size>9</Size></Font></Field><" + "Field><Name>OrderQtrLbl1</Name><Section>5</Section><Text>Q1</Text><Left>6015</Le" + "ft><Top>720</Top><Width>720</Width><Height>255</Height><Align>5</Align><ForeColo" + "r>11119017</ForeColor><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verdana</" + "Name><Size>9</Size></Font></Field><Field><Name>ProductNameLbl1</Name><Section>5<" + "/Section><Text>ProductName</Text><Calculated>-1</Calculated><Top>270</Top><Width" + ">5940</Width><Height>360</Height><Align>0</Align><WordWrap>0</WordWrap><Font><Bo" + "ld>-1</Bold><Name>Verdana</Name><Size>14.25</Size></Font></Field><Field><Name>Or" + "derQtrLbl2</Name><Section>5</Section><Text>Q2</Text><Left>6810</Left><Top>720</T" + "op><Width>720</Width><Height>255</Height><Align>5</Align><ForeColor>11119017</Fo" + "reColor><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><Size>9</" + "Size></Font></Field><Field><Name>OrderQtrLbl3</Name><Section>5</Section><Text>Q3" + "</Text><Left>7605</Left><Top>720</Top><Width>720</Width><Height>255</Height><Ali" + "gn>5</Align><ForeColor>11119017</ForeColor><WordWrap>0</WordWrap><Font><Bold>-1<" + "/Bold><Name>Verdana</Name><Size>9</Size></Font></Field><Field><Name>OrderQtrLbl4" + "</Name><Section>5</Section><Text>Q4</Text><Left>8400</Left><Top>720</Top><Width>" + "720</Width><Height>255</Height><Align>5</Align><ForeColor>11119017</ForeColor><W" + "ordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><Size>9</Size></Fon" + "t></Field><Field><Name>fQ2</Name><Section>9</Section><Text>sum(SaleAmount, Order" + "Qtr = 2)</Text><Calculated>-1</Calculated><Format>#,##0;#;#</Format><Left>6795</" + "Left><Width>720</Width><Height>255</Height><Align>2</Align><WordWrap>0</WordWrap" + "><Font><Name>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>fQ3</Nam" + "e><Section>9</Section><Text>sum(SaleAmount, OrderQtr = 3)</Text><Calculated>-1</" + "Calculated><Format>#,##0;#;#</Format><Left>7590</Left><Width>720</Width><Height>" + "255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Name>Verdana</Name><Siz" + "e>8.25</Size></Font></Field><Field><Name>fQ4</Name><Section>9</Section><Text>sum" + "(SaleAmount, OrderQtr = 4)</Text><Calculated>-1</Calculated><Format>#,##0;#;#</F" + "ormat><Left>8385</Left><Width>720</Width><Height>255</Height><Align>2</Align><Wo" + "rdWrap>0</WordWrap><Font><Name>Verdana</Name><Size>8.25</Size></Font></Field><Fi" + "eld><Name>fQ1</Name><Section>9</Section><Text>sum(SaleAmount, OrderQtr = 1)</Tex" + "t><Calculated>-1</Calculated><Format>#,##0;#;#</Format><Left>6000</Left><Width>7" + "20</Width><Height>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Name>" + "Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>Field1</Name><Section" + ">6</Section><Width>9345</Width><BorderStyle>1</BorderStyle><BorderColor>11119017" + "</BorderColor><LineSlant>2</LineSlant></Field><Field><Name>Field</Name><Section>" + "5</Section><Top>990</Top><Width>9345</Width><BorderStyle>1</BorderStyle><BorderC" + "olor>11119017</BorderColor><LineSlant>2</LineSlant></Field><Field><Name>fQ</Name" + "><Section>6</Section><Text>sum(SaleAmount, OrderQtr = 2)</Text><Calculated>-1</C" + "alculated><Format>#,##0;#;#</Format><Left>6780</Left><Top>90</Top><Width>720</Wi" + "dth><Height>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Bold>-1</Bo" + "ld><Name>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>fQ5</Name><S" + "ection>6</Section><Text>sum(SaleAmount, OrderQtr = 3)</Text><Calculated>-1</Calc" + "ulated><Format>#,##0;#;#</Format><Left>7575</Left><Top>90</Top><Width>720</Width" + "><Height>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Bold>-1</Bold>" + "<Name>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>fQ6</Name><Sect" + "ion>6</Section><Text>sum(SaleAmount, OrderQtr = 4)</Text><Calculated>-1</Calcula" + "ted><Format>#,##0;#;#</Format><Left>8370</Left><Top>90</Top><Width>720</Width><H" + "eight>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Na" + "me>Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>fQ7</Name><Section" + ">6</Section><Text>sum(SaleAmount, OrderQtr = 1)</Text><Calculated>-1</Calculated" + "><Format>#,##0;#;#</Format><Left>5985</Left><Top>90</Top><Width>720</Width><Heig" + "ht>255</Height><Align>2</Align><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>" + "Verdana</Name><Size>8.25</Size></Font></Field><Field><Name>fSales1</Name><Sectio" + "n>6</Section><Text>sum(SaleAmount)</Text><Calculated>-1</Calculated><Format>#,##" + "0</Format><Left>4500</Left><Top>90</Top><Width>1350</Width><Height>255</Height><" + "Align>2</Align><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><S" + "ize>8.25</Size></Font></Field><Field><Name>fContinued</Name><Section>5</Section>" + "<Text>(continued)</Text><Left>6015</Left><Top>270</Top><Width>2610</Width><Heigh" + "t>345</Height><Align>0</Align><ForeColor>11119017</ForeColor><Visible>0</Visible" + "><WordWrap>0</WordWrap><Font><Bold>-1</Bold><Name>Verdana</Name><Size>11.25</Siz" + "e></Font></Field><Field><Name>Field2</Name><Section>9</Section><Left>5940</Left>" + "<Height>255</Height><BorderStyle>1</BorderStyle><BorderColor>11119017</BorderCol" + "or><LineSlant>1</LineSlant></Field><Field><Name>Field3</Name><Section>4</Section" + "><Top>255</Top><Width>9315</Width><BorderStyle>1</BorderStyle><LineSlant>1</Line" + "Slant></Field></Fields></Report>"; this._c1r.ReportName = "Cross-Tab"; // // button1 // this.button1.Location = new System.Drawing.Point(77, 88); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(176, 24); this.button1.TabIndex = 0; this.button1.Text = "Render with Progress Form"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(77, 136); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(176, 24); this.button2.TabIndex = 1; this.button2.Text = "Render with Status Bar"; this.button2.Click += new System.EventHandler(this.button2_Click); // // _statusBar // this._statusBar.Location = new System.Drawing.Point(0, 185); this._statusBar.Name = "_statusBar"; this._statusBar.Size = new System.Drawing.Size(330, 22); this._statusBar.SizingGrip = false; this._statusBar.TabIndex = 2; // // label1 // this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(312, 72); this.label1.TabIndex = 3; this.label1.Text = "This sample renders a long report with an option of progress indicators. A progre" + "ss indicator form with a Cancel button or a simple StatusBar."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(330, 207); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1, this._statusBar, this.button2, this.button1 }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: Progress Indicators"; ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this._c1r = new C1.C1Report.C1Report(); this._ppv = new C1.Win.C1Preview.C1PreviewPane(); this._tbPreview = new System.Windows.Forms.ToolBar(); this._btnRenderReport = new System.Windows.Forms.ToolBarButton(); this._btnPrintReport = new System.Windows.Forms.ToolBarButton(); this._btnSep1 = new System.Windows.Forms.ToolBarButton(); this._btnFirst = new System.Windows.Forms.ToolBarButton(); this._btnPrev = new System.Windows.Forms.ToolBarButton(); this._btnNext = new System.Windows.Forms.ToolBarButton(); this._btnLast = new System.Windows.Forms.ToolBarButton(); this._btnSep2 = new System.Windows.Forms.ToolBarButton(); this._btnActual = new System.Windows.Forms.ToolBarButton(); this._previewMenu = new System.Windows.Forms.ContextMenu(); this._mn50 = new System.Windows.Forms.MenuItem(); this._mn100 = new System.Windows.Forms.MenuItem(); this._mn150 = new System.Windows.Forms.MenuItem(); this._mn200 = new System.Windows.Forms.MenuItem(); this._mn400 = new System.Windows.Forms.MenuItem(); this._btnOnePage = new System.Windows.Forms.ToolBarButton(); this._btnTwoPages = new System.Windows.Forms.ToolBarButton(); this._btnSep3 = new System.Windows.Forms.ToolBarButton(); this._imgList = new System.Windows.Forms.ImageList(this.components); this._chartType = new System.Windows.Forms.ComboBox(); this._chart = new C1.Win.C1Chart.C1Chart(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._chart)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.ReportName = "Sales by Category"; this._c1r.PrintSection += new C1.C1Report.ReportEventHandler(this._c1r_PrintSection); // // _ppv // this._ppv.Dock = System.Windows.Forms.DockStyle.Fill; this._ppv.Location = new System.Drawing.Point(0, 27); this._ppv.Name = "_ppv"; this._ppv.Size = new System.Drawing.Size(542, 365); this._ppv.TabIndex = 2; // // _tbPreview // this._tbPreview.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this._tbPreview.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this._btnRenderReport, this._btnPrintReport, this._btnSep1, this._btnFirst, this._btnPrev, this._btnNext, this._btnLast, this._btnSep2, this._btnActual, this._btnOnePage, this._btnTwoPages, this._btnSep3 }); this._tbPreview.DropDownArrows = true; this._tbPreview.ImageList = this._imgList; this._tbPreview.Location = new System.Drawing.Point(0, 0); this._tbPreview.Name = "_tbPreview"; this._tbPreview.ShowToolTips = true; this._tbPreview.Size = new System.Drawing.Size(542, 27); this._tbPreview.TabIndex = 11; this._tbPreview.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._tbPreview_ButtonClick); // // _btnRenderReport // this._btnRenderReport.ImageIndex = 0; this._btnRenderReport.Name = "_btnRenderReport"; this._btnRenderReport.ToolTipText = "Render the Report"; // // _btnPrintReport // this._btnPrintReport.ImageIndex = 1; this._btnPrintReport.Name = "_btnPrintReport"; this._btnPrintReport.ToolTipText = "Print the Report"; // // _btnSep1 // this._btnSep1.Name = "_btnSep1"; this._btnSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // _btnFirst // this._btnFirst.ImageIndex = 2; this._btnFirst.Name = "_btnFirst"; this._btnFirst.ToolTipText = "First page"; // // _btnPrev // this._btnPrev.ImageIndex = 3; this._btnPrev.Name = "_btnPrev"; this._btnPrev.ToolTipText = "Previous page"; // // _btnNext // this._btnNext.ImageIndex = 4; this._btnNext.Name = "_btnNext"; this._btnNext.ToolTipText = "Next page"; // // _btnLast // this._btnLast.ImageIndex = 5; this._btnLast.Name = "_btnLast"; this._btnLast.ToolTipText = "Last page"; // // _btnSep2 // this._btnSep2.Name = "_btnSep2"; this._btnSep2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // _btnActual // this._btnActual.DropDownMenu = this._previewMenu; this._btnActual.ImageIndex = 6; this._btnActual.Name = "_btnActual"; this._btnActual.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this._btnActual.ToolTipText = "Actual Size"; // // _previewMenu // this._previewMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this._mn50, this._mn100, this._mn150, this._mn200, this._mn400 }); // // _mn50 // this._mn50.Index = 0; this._mn50.Text = "50%"; this._mn50.Click += new System.EventHandler(this._mnZoom_Click); // // _mn100 // this._mn100.Index = 1; this._mn100.Text = "100%"; this._mn100.Click += new System.EventHandler(this._mnZoom_Click); // // _mn150 // this._mn150.Index = 2; this._mn150.Text = "150%"; this._mn150.Click += new System.EventHandler(this._mnZoom_Click); // // _mn200 // this._mn200.Index = 3; this._mn200.Text = "200%"; this._mn200.Click += new System.EventHandler(this._mnZoom_Click); // // _mn400 // this._mn400.Index = 4; this._mn400.Text = "400%"; this._mn400.Click += new System.EventHandler(this._mnZoom_Click); // // _btnOnePage // this._btnOnePage.ImageIndex = 7; this._btnOnePage.Name = "_btnOnePage"; this._btnOnePage.ToolTipText = "One page"; // // _btnTwoPages // this._btnTwoPages.ImageIndex = 8; this._btnTwoPages.Name = "_btnTwoPages"; this._btnTwoPages.ToolTipText = "Two pages"; // // _btnSep3 // this._btnSep3.Name = "_btnSep3"; this._btnSep3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // _imgList // this._imgList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_imgList.ImageStream"))); this._imgList.TransparentColor = System.Drawing.Color.Red; this._imgList.Images.SetKeyName(0, "Preview.bmp"); this._imgList.Images.SetKeyName(1, "Print.bmp"); this._imgList.Images.SetKeyName(2, "PreviewFirst.bmp"); this._imgList.Images.SetKeyName(3, "PreviewPrevious.bmp"); this._imgList.Images.SetKeyName(4, "PreviewNext.bmp"); this._imgList.Images.SetKeyName(5, "PreviewLast.bmp"); this._imgList.Images.SetKeyName(6, "FitWidth.bmp"); this._imgList.Images.SetKeyName(7, "FitPage.bmp"); this._imgList.Images.SetKeyName(8, "FitTwoPages.bmp"); // // _chartType // this._chartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._chartType.Items.AddRange(new object[] { "Bar", "Line", "Area" }); this._chartType.Location = new System.Drawing.Point(256, 2); this._chartType.Name = "_chartType"; this._chartType.Size = new System.Drawing.Size(121, 21); this._chartType.TabIndex = 13; this._chartType.SelectedIndexChanged += new System.EventHandler(this._chartType_SelectedIndexChanged); // // _chart // this._chart.BackColor = System.Drawing.Color.White; this._chart.Font = new System.Drawing.Font("Tahoma", 8.25F); this._chart.Location = new System.Drawing.Point(64, 40); this._chart.Name = "_chart"; this._chart.PropBag = resources.GetString("_chart.PropBag"); this._chart.Size = new System.Drawing.Size(408, 312); this._chart.TabIndex = 14; this._chart.Visible = false; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(542, 392); this.Controls.Add(this._chart); this.Controls.Add(this._chartType); this.Controls.Add(this._ppv); this.Controls.Add(this._tbPreview); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report Sample: Report with embedded charts (C1Chart)"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._chart)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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(Form1)); this._c1r = new C1.C1Report.C1Report(); this._list = new System.Windows.Forms.ListBox(); this._btnShow = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this._rdAscending = new System.Windows.Forms.RadioButton(); this._rdDescending = new System.Windows.Forms.RadioButton(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.ReportName = "Alphabetical List of Products Report"; // // _list // this._list.Location = new System.Drawing.Point(8, 32); this._list.Name = "_list"; this._list.Size = new System.Drawing.Size(216, 225); this._list.TabIndex = 0; // // _btnShow // this._btnShow.Location = new System.Drawing.Point(240, 78); this._btnShow.Name = "_btnShow"; this._btnShow.Size = new System.Drawing.Size(128, 32); this._btnShow.TabIndex = 1; this._btnShow.Text = "Show report"; this._btnShow.Click += new System.EventHandler(this._btnShow_Click); // // label1 // this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(216, 24); this.label1.TabIndex = 2; this.label1.Text = "Sort By:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _rdAscending // this._rdAscending.Checked = true; this._rdAscending.Location = new System.Drawing.Point(240, 32); this._rdAscending.Name = "_rdAscending"; this._rdAscending.Size = new System.Drawing.Size(120, 16); this._rdAscending.TabIndex = 3; this._rdAscending.TabStop = true; this._rdAscending.Text = "Ascending"; // // _rdDescending // this._rdDescending.Location = new System.Drawing.Point(240, 56); this._rdDescending.Name = "_rdDescending"; this._rdDescending.Size = new System.Drawing.Size(120, 16); this._rdDescending.TabIndex = 3; this._rdDescending.Text = "Descending"; // // button1 // this.button1.Location = new System.Drawing.Point(240, 116); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(128, 60); this.button1.TabIndex = 1; this.button1.Text = "Show report\r\nin C1PrintPreviewControl"; this.button1.Click += new System.EventHandler(this._btnC1Show_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(380, 270); this.Controls.Add(this._rdAscending); this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Controls.Add(this._btnShow); this.Controls.Add(this._list); this.Controls.Add(this._rdDescending); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: Ad-Hoc Sorting"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuOpen = new System.Windows.Forms.MenuItem(); this.menuSave = new System.Windows.Forms.MenuItem(); this.menuSaveAll = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuExport = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuPreview = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuExit = new System.Windows.Forms.MenuItem(); this.lstReports = new System.Windows.Forms.ListBox(); this.splitter1 = new System.Windows.Forms.Splitter(); this.c1Report1 = new C1.C1Report.C1Report(); this.stat = new System.Windows.Forms.StatusBar(); this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.tbOpen = new System.Windows.Forms.ToolBarButton(); this.tbSave = new System.Windows.Forms.ToolBarButton(); this.tbPreview = new System.Windows.Forms.ToolBarButton(); this.tbPrint = new System.Windows.Forms.ToolBarButton(); this.tbInfo = new System.Windows.Forms.ToolBarButton(); this.tbScript = new System.Windows.Forms.ToolBarButton(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.tbActual = new System.Windows.Forms.ToolBarButton(); this.tbPage = new System.Windows.Forms.ToolBarButton(); this.tbTwo = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.tbFirst = new System.Windows.Forms.ToolBarButton(); this.tbPrev = new System.Windows.Forms.ToolBarButton(); this.tbNext = new System.Windows.Forms.ToolBarButton(); this.tbLast = new System.Windows.Forms.ToolBarButton(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.panel1 = new System.Windows.Forms.Panel(); this.ppv = new C1.Win.C1Preview.C1PreviewPane(); ((System.ComponentModel.ISupportInitialize)(this.c1Report1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ppv)).BeginInit(); this.SuspendLayout(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuOpen, this.menuSave, this.menuSaveAll, this.menuItem2, this.menuExport, this.menuItem3, this.menuPreview, this.menuItem4, this.menuItem5, this.menuExit }); this.menuItem1.Text = "&File"; // // menuOpen // this.menuOpen.Index = 0; this.menuOpen.Text = "&Open..."; this.menuOpen.Click += new System.EventHandler(this.menuOpen_Click); // // menuSave // this.menuSave.Index = 1; this.menuSave.Text = "&Save Current..."; this.menuSave.Click += new System.EventHandler(this.menuSave_Click); // // menuSaveAll // this.menuSaveAll.Index = 2; this.menuSaveAll.Text = "Save &All..."; this.menuSaveAll.Click += new System.EventHandler(this.menuSaveAll_Click); // // menuItem2 // this.menuItem2.Index = 3; this.menuItem2.Text = "-"; // // menuExport // this.menuExport.Index = 4; this.menuExport.Text = "Export..."; this.menuExport.Click += new System.EventHandler(this.menuExport_Click); // // menuItem3 // this.menuItem3.Index = 5; this.menuItem3.Text = "-"; // // menuPreview // this.menuPreview.Index = 6; this.menuPreview.Text = "Pre&view..."; this.menuPreview.Click += new System.EventHandler(this.menuPreview_Click); // // menuItem4 // this.menuItem4.Index = 7; this.menuItem4.Text = "&Print"; // // menuItem5 // this.menuItem5.Index = 8; this.menuItem5.Text = "-"; // // menuExit // this.menuExit.Index = 9; this.menuExit.Text = "E&xit"; this.menuExit.Click += new System.EventHandler(this.menuExit_Click); // // lstReports // this.lstReports.Dock = System.Windows.Forms.DockStyle.Left; this.lstReports.IntegralHeight = false; this.lstReports.Location = new System.Drawing.Point(0, 28); this.lstReports.Name = "lstReports"; this.lstReports.Size = new System.Drawing.Size(196, 526); this.lstReports.TabIndex = 0; this.lstReports.DoubleClick += new System.EventHandler(this.lstReports_DoubleClick); // // splitter1 // this.splitter1.Location = new System.Drawing.Point(196, 28); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(6, 526); this.splitter1.TabIndex = 1; this.splitter1.TabStop = false; // // c1Report1 // this.c1Report1.ReportDefinition = resources.GetString("c1Report1.ReportDefinition"); this.c1Report1.NoData += new System.EventHandler(this.c1Report1_NoData); this.c1Report1.StartReport += new System.EventHandler(this.c1Report1_StartReport); this.c1Report1.ReportError += new C1.C1Report.ReportEventHandler(this.c1Report1_ReportError); this.c1Report1.EndReport += new System.EventHandler(this.c1Report1_EndReport); this.c1Report1.StartPage += new C1.C1Report.ReportEventHandler(this.c1Report1_StartPage); // // stat // this.stat.Location = new System.Drawing.Point(0, 554); this.stat.Name = "stat"; this.stat.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel1 }); this.stat.ShowPanels = true; this.stat.Size = new System.Drawing.Size(720, 23); this.stat.TabIndex = 2; // // statusBarPanel1 // this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.statusBarPanel1.Name = "statusBarPanel1"; this.statusBarPanel1.Width = 703; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbOpen, this.tbSave, this.tbPreview, this.tbPrint, this.tbInfo, this.tbScript, this.toolBarButton1, this.tbActual, this.tbPage, this.tbTwo, this.toolBarButton4, this.tbFirst, this.tbPrev, this.tbNext, this.tbLast }); this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.imageList1; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(720, 28); this.toolBar1.TabIndex = 4; this.toolBar1.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // tbOpen // this.tbOpen.ImageIndex = 8; this.tbOpen.Name = "tbOpen"; this.tbOpen.ToolTipText = "Open report definition file"; // // tbSave // this.tbSave.ImageIndex = 12; this.tbSave.Name = "tbSave"; this.tbSave.ToolTipText = "Save Report Definition file"; // // tbPreview // this.tbPreview.ImageIndex = 9; this.tbPreview.Name = "tbPreview"; this.tbPreview.ToolTipText = "Preview report in dialog"; // // tbPrint // this.tbPrint.ImageIndex = 10; this.tbPrint.Name = "tbPrint"; this.tbPrint.ToolTipText = "Print report"; // // tbInfo // this.tbInfo.ImageIndex = 7; this.tbInfo.Name = "tbInfo"; this.tbInfo.ToolTipText = "Show report information"; // // tbScript // this.tbScript.ImageIndex = 11; this.tbScript.Name = "tbScript"; this.tbScript.ToolTipText = "Test scripting engine"; // // toolBarButton1 // this.toolBarButton1.Name = "toolBarButton1"; this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbActual // this.tbActual.ImageIndex = 0; this.tbActual.Name = "tbActual"; this.tbActual.ToolTipText = "Zoom to actual page"; // // tbPage // this.tbPage.ImageIndex = 2; this.tbPage.Name = "tbPage"; this.tbPage.ToolTipText = "Zoom to whole page"; // // tbTwo // this.tbTwo.ImageIndex = 1; this.tbTwo.Name = "tbTwo"; this.tbTwo.ToolTipText = "Zoom to two pages"; // // toolBarButton4 // this.toolBarButton4.Name = "toolBarButton4"; this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbFirst // this.tbFirst.ImageIndex = 3; this.tbFirst.Name = "tbFirst"; this.tbFirst.ToolTipText = "Show first page"; // // tbPrev // this.tbPrev.ImageIndex = 6; this.tbPrev.Name = "tbPrev"; this.tbPrev.ToolTipText = "Show previous page"; // // tbNext // this.tbNext.ImageIndex = 5; this.tbNext.Name = "tbNext"; this.tbNext.ToolTipText = "Show next page"; // // tbLast // this.tbLast.ImageIndex = 4; this.tbLast.Name = "tbLast"; this.tbLast.ToolTipText = "Show last page"; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Red; this.imageList1.Images.SetKeyName(0, ""); this.imageList1.Images.SetKeyName(1, ""); this.imageList1.Images.SetKeyName(2, ""); this.imageList1.Images.SetKeyName(3, ""); this.imageList1.Images.SetKeyName(4, ""); this.imageList1.Images.SetKeyName(5, ""); this.imageList1.Images.SetKeyName(6, ""); this.imageList1.Images.SetKeyName(7, ""); this.imageList1.Images.SetKeyName(8, ""); this.imageList1.Images.SetKeyName(9, ""); this.imageList1.Images.SetKeyName(10, ""); this.imageList1.Images.SetKeyName(11, ""); this.imageList1.Images.SetKeyName(12, ""); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel1.Controls.Add(this.ppv); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(202, 28); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(518, 526); this.panel1.TabIndex = 5; // // ppv // this.ppv.Dock = System.Windows.Forms.DockStyle.Fill; this.ppv.Location = new System.Drawing.Point(0, 0); this.ppv.Name = "ppv"; this.ppv.Size = new System.Drawing.Size(514, 522); this.ppv.TabIndex = 0; this.ppv.ZoomFactor = 0.3; this.ppv.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.Custom; // // frmMain // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(720, 577); this.Controls.Add(this.panel1); this.Controls.Add(this.splitter1); this.Controls.Add(this.lstReports); this.Controls.Add(this.stat); this.Controls.Add(this.toolBar1); this.KeyPreview = true; this.Menu = this.mainMenu1; this.Name = "frmMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report Test Application"; this.Load += new System.EventHandler(this.frmMain_Load); this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.frmMain_KeyPress); ((System.ComponentModel.ISupportInitialize)(this.c1Report1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ppv)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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(Form1)); this._c1r = new C1.C1Report.C1Report(); this._ppv = new C1.Win.C1Preview.C1PreviewPane(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this._tb = new System.Windows.Forms.ToolBar(); this._tbFirst = new System.Windows.Forms.ToolBarButton(); this._tbPrevious = new System.Windows.Forms.ToolBarButton(); this._tbNext = new System.Windows.Forms.ToolBarButton(); this._tbLast = new System.Windows.Forms.ToolBarButton(); this._tbSep0 = new System.Windows.Forms.ToolBarButton(); this._tbZoomIn = new System.Windows.Forms.ToolBarButton(); this._tbZoomOut = new System.Windows.Forms.ToolBarButton(); this._tbPage = new System.Windows.Forms.ToolBarButton(); ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // _c1r // this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition"); this._c1r.ReportName = "Categories"; // // _ppv // this._ppv.Dock = System.Windows.Forms.DockStyle.Fill; this._ppv.Location = new System.Drawing.Point(0, 60); this._ppv.Name = "_ppv"; this._ppv.Size = new System.Drawing.Size(520, 456); this._ppv.TabIndex = 0; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button3); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 25); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(520, 35); this.panel1.TabIndex = 1; // // button1 // this.button1.Location = new System.Drawing.Point(8, 6); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(120, 22); this.button1.TabIndex = 0; this.button1.Text = "Default Data/Filter"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(136, 6); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(120, 22); this.button2.TabIndex = 0; this.button2.Text = "Custom Data"; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(264, 6); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(120, 22); this.button3.TabIndex = 0; this.button3.Text = "Custom Data/Filter"; this.button3.Click += new System.EventHandler(this.button3_Click); // // _tb // this._tb.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this._tb.AutoSize = false; this._tb.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this._tbFirst, this._tbPrevious, this._tbNext, this._tbLast, this._tbSep0, this._tbZoomIn, this._tbZoomOut, this._tbPage }); this._tb.ButtonSize = new System.Drawing.Size(50, 22); this._tb.DropDownArrows = true; this._tb.Location = new System.Drawing.Point(0, 0); this._tb.Name = "_tb"; this._tb.ShowToolTips = true; this._tb.Size = new System.Drawing.Size(520, 25); this._tb.TabIndex = 2; this._tb.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this._tb.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._tb_ButtonClick); // // _tbFirst // this._tbFirst.Name = "_tbFirst"; this._tbFirst.Text = "<<"; // // _tbPrevious // this._tbPrevious.Name = "_tbPrevious"; this._tbPrevious.Text = "<"; // // _tbNext // this._tbNext.Name = "_tbNext"; this._tbNext.Text = ">"; // // _tbLast // this._tbLast.Name = "_tbLast"; this._tbLast.Text = ">>"; // // _tbSep0 // this._tbSep0.Name = "_tbSep0"; this._tbSep0.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // _tbZoomIn // this._tbZoomIn.Name = "_tbZoomIn"; this._tbZoomIn.Text = "+"; // // _tbZoomOut // this._tbZoomOut.Name = "_tbZoomOut"; this._tbZoomOut.Text = "-"; // // _tbPage // this._tbPage.Name = "_tbPage"; this._tbPage.Text = "Page"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(520, 516); this.Controls.Add(this._ppv); this.Controls.Add(this.panel1); this.Controls.Add(this._tb); this.KeyPreview = true; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "C1Report: Subreport Data Sources"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }