Пример #1
0
 /// <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(mainForm));
     this.saveFileDialog1     = new System.Windows.Forms.SaveFileDialog();
     this.Report              = new FlexCel.Report.FlexCelReport();
     this.Connection          = new System.Data.OleDb.OleDbConnection();
     this.dataSet             = new System.Data.DataSet();
     this.dataGrid            = new System.Windows.Forms.DataGrid();
     this.dbDataAdapter       = new System.Data.OleDb.OleDbDataAdapter();
     this.mainToolbar         = new System.Windows.Forms.ToolStrip();
     this.btnOpenConnection   = new System.Windows.Forms.ToolStripButton();
     this.btnQuery            = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.btnExportExcel      = new System.Windows.Forms.ToolStripButton();
     this.btnExit             = new System.Windows.Forms.ToolStripButton();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
     this.mainToolbar.SuspendLayout();
     this.SuspendLayout();
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Excel Files|*.xls;*.xlsx;*.xlsm|Excel 97/2003|*.xls|Excel 2007|*.xlsx;*.xlsm|All " +
                                   "files|*.*";
     this.saveFileDialog1.RestoreDirectory = true;
     //
     // Report
     //
     this.Report.AllowOverwritingFiles = true;
     this.Report.DeleteEmptyBands      = FlexCel.Report.TDeleteEmptyBands.ClearDataAndFormats;
     this.Report.DeleteEmptyRanges     = false;
     //
     // dataSet
     //
     this.dataSet.DataSetName = "NewDataSet";
     this.dataSet.Locale      = new System.Globalization.CultureInfo("es-ES");
     //
     // dataGrid
     //
     this.dataGrid.DataMember      = "";
     this.dataGrid.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid.Location        = new System.Drawing.Point(0, 38);
     this.dataGrid.Name            = "dataGrid";
     this.dataGrid.Size            = new System.Drawing.Size(528, 239);
     this.dataGrid.TabIndex        = 4;
     //
     // mainToolbar
     //
     this.mainToolbar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.btnOpenConnection,
         this.btnQuery,
         this.toolStripSeparator1,
         this.btnExportExcel,
         this.btnExit
     });
     this.mainToolbar.Location = new System.Drawing.Point(0, 0);
     this.mainToolbar.Name     = "mainToolbar";
     this.mainToolbar.Size     = new System.Drawing.Size(528, 38);
     this.mainToolbar.TabIndex = 11;
     this.mainToolbar.Text     = "mainToolbar";
     //
     // btnOpenConnection
     //
     this.btnOpenConnection.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenConnection.Image")));
     this.btnOpenConnection.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnOpenConnection.Name = "btnOpenConnection";
     this.btnOpenConnection.Size = new System.Drawing.Size(103, 35);
     this.btnOpenConnection.Text = "Open connection";
     this.btnOpenConnection.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnOpenConnection.Click            += new System.EventHandler(this.btnOpenconnection_Click);
     //
     // btnQuery
     //
     this.btnQuery.Image = ((System.Drawing.Image)(resources.GetObject("btnQuery.Image")));
     this.btnQuery.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnQuery.Name = "btnQuery";
     this.btnQuery.Size = new System.Drawing.Size(70, 35);
     this.btnQuery.Text = "Query Data";
     this.btnQuery.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnQuery.Click            += new System.EventHandler(this.btnQuery_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 38);
     //
     // btnExportExcel
     //
     this.btnExportExcel.Image = ((System.Drawing.Image)(resources.GetObject("btnExportExcel.Image")));
     this.btnExportExcel.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnExportExcel.Name = "btnExportExcel";
     this.btnExportExcel.Size = new System.Drawing.Size(87, 35);
     this.btnExportExcel.Text = "Export to Excel";
     this.btnExportExcel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnExportExcel.Click            += new System.EventHandler(this.btnExportExcel_Click);
     //
     // btnExit
     //
     this.btnExit.Alignment             = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.btnExit.Image                 = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
     this.btnExit.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnExit.Name = "btnExit";
     this.btnExit.Size = new System.Drawing.Size(59, 35);
     this.btnExit.Text = "     E&xit     ";
     this.btnExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnExit.Click            += new System.EventHandler(this.button2_Click);
     //
     // mainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(528, 277);
     this.Controls.Add(this.dataGrid);
     this.Controls.Add(this.mainToolbar);
     this.Name = "mainForm";
     this.Text = "Generic Reports 2";
     ((System.ComponentModel.ISupportInitialize)(this.dataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).EndInit();
     this.mainToolbar.ResumeLayout(false);
     this.mainToolbar.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnGo           = new System.Windows.Forms.Button();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.reportStart     = new FlexCel.Report.FlexCelReport();
     this.edName          = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.btnCancel       = new System.Windows.Forms.Button();
     this.label2          = new System.Windows.Forms.Label();
     this.edUrl           = new System.Windows.Forms.TextBox();
     this.cbAutoOpen      = new System.Windows.Forms.CheckBox();
     this.SuspendLayout();
     //
     // btnGo
     //
     this.btnGo.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnGo.BackColor = System.Drawing.Color.Green;
     this.btnGo.ForeColor = System.Drawing.Color.White;
     this.btnGo.Location  = new System.Drawing.Point(152, 152);
     this.btnGo.Name      = "btnGo";
     this.btnGo.Size      = new System.Drawing.Size(112, 24);
     this.btnGo.TabIndex  = 0;
     this.btnGo.Text      = "GO!";
     this.btnGo.UseVisualStyleBackColor = false;
     this.btnGo.Click += new System.EventHandler(this.btnGo_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Excel Files|*.xls;*.xlsx;*.xlsm|Excel 97/2003|*.xls|Excel 2007|*.xlsx;*.xlsm|All " +
                                   "files|*.*";
     this.saveFileDialog1.RestoreDirectory = true;
     //
     // reportStart
     //
     this.reportStart.AllowOverwritingFiles = true;
     this.reportStart.DeleteEmptyRanges     = false;
     //
     // edName
     //
     this.edName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.edName.Location = new System.Drawing.Point(24, 40);
     this.edName.Name     = "edName";
     this.edName.Size     = new System.Drawing.Size(360, 20);
     this.edName.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(24, 24);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(160, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Tell me your name:";
     //
     // btnCancel
     //
     this.btnCancel.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.btnCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.ForeColor               = System.Drawing.Color.White;
     this.btnCancel.Location                = new System.Drawing.Point(272, 152);
     this.btnCancel.Name                    = "btnCancel";
     this.btnCancel.Size                    = new System.Drawing.Size(112, 23);
     this.btnCancel.TabIndex                = 3;
     this.btnCancel.Text                    = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = false;
     this.btnCancel.Click                  += new System.EventHandler(this.btnCancel_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(28, 60);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(228, 16);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Your Home page (without http://)";
     //
     // edUrl
     //
     this.edUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.edUrl.Location = new System.Drawing.Point(28, 76);
     this.edUrl.Name     = "edUrl";
     this.edUrl.Size     = new System.Drawing.Size(360, 20);
     this.edUrl.TabIndex = 4;
     this.edUrl.Text     = "www.tmssoftware.com";
     //
     // cbAutoOpen
     //
     this.cbAutoOpen.Location = new System.Drawing.Point(24, 104);
     this.cbAutoOpen.Name     = "cbAutoOpen";
     this.cbAutoOpen.Size     = new System.Drawing.Size(264, 24);
     this.cbAutoOpen.TabIndex = 6;
     this.cbAutoOpen.Text     = "Auto open the generated file without saving it";
     //
     // mainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(416, 190);
     this.Controls.Add(this.cbAutoOpen);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.edUrl);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.edName);
     this.Controls.Add(this.btnGo);
     this.Name = "mainForm";
     this.Text = "Getting Started";
     this.ResumeLayout(false);
     this.PerformLayout();
 }