示例#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(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);
 }
示例#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.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();
 }
示例#3
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(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);
 }