Пример #1
0
		public ZoomTo(RdlViewer viewer)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			_Viewer = viewer;
			// set the intial value for magnification
			if (_Viewer.ZoomMode == ZoomEnum.FitPage)
				cbMagnify.Text = "Fit Page";
			else if (_Viewer.ZoomMode == ZoomEnum.FitWidth)
				cbMagnify.Text = "Fit Width";
			else if (_Viewer.Zoom == 1)
				cbMagnify.Text = "Actual Size";
			else
			{
				string formatted = string.Format("{0:#0.##}", _Viewer.Zoom * 100);
				if (formatted[formatted.Length-1] == '.')
					formatted = formatted.Substring(0, formatted.Length-2);
				formatted = formatted + "%";
				cbMagnify.Text = formatted;
			}

		}
Пример #2
0
		public MDIChild(int width, int height)
		{
			this.rdlViewer1 = new Oranikle.Report.Viewer.RdlViewer();
			this.SuspendLayout();
			// 
			// rdlViewer1
			// 
			this.rdlViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.rdlViewer1.Location = new System.Drawing.Point(0, 0);
			this.rdlViewer1.Name = "rdlViewer1";
			this.rdlViewer1.Size = new System.Drawing.Size(width, height);
			this.rdlViewer1.TabIndex = 0;
			// 
			// RdlReader
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(width, height);
			this.Controls.Add(this.rdlViewer1);
			this.Name = "";
			this.Text = "";
			this.ResumeLayout(false);
		}
Пример #3
0
 public MDIChild(int width, int height)
 {
     this.rdlViewer1 = new Oranikle.Report.Viewer.RdlViewer();
     this.SuspendLayout();
     //
     // rdlViewer1
     //
     this.rdlViewer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.rdlViewer1.Location = new System.Drawing.Point(0, 0);
     this.rdlViewer1.Name     = "rdlViewer1";
     this.rdlViewer1.Size     = new System.Drawing.Size(width, height);
     this.rdlViewer1.TabIndex = 0;
     //
     // RdlReader
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(width, height);
     this.Controls.Add(this.rdlViewer1);
     this.Name = "";
     this.Text = "";
     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.tcEHP      = new Oranikle.Studio.Controls.CtrlStyledTab();
     this.tpDesign   = new System.Windows.Forms.TabPage();
     this.tpEditor   = new System.Windows.Forms.TabPage();
     this.tbEditor   = new System.Windows.Forms.RichTextBox();
     this.tpBrowser  = new System.Windows.Forms.TabPage();
     this.rdlPreview = new Oranikle.Report.Viewer.RdlViewer();
     this.tcEHP.SuspendLayout();
     this.tpEditor.SuspendLayout();
     this.tpBrowser.SuspendLayout();
     this.SuspendLayout();
     //
     // tcEHP
     //
     this.tcEHP.Alignment   = System.Windows.Forms.TabAlignment.Bottom;
     this.tcEHP.BorderColor = System.Drawing.Color.DarkGray;
     this.tcEHP.Controls.Add(this.tpDesign);
     this.tcEHP.Controls.Add(this.tpEditor);
     this.tcEHP.Controls.Add(this.tpBrowser);
     this.tcEHP.Dock                   = System.Windows.Forms.DockStyle.Fill;
     this.tcEHP.DontSlantMiddle        = false;
     this.tcEHP.LeftSpacing            = 0;
     this.tcEHP.Location               = new System.Drawing.Point(0, 0);
     this.tcEHP.myBackColor            = System.Drawing.Color.Transparent;
     this.tcEHP.Name                   = "tcEHP";
     this.tcEHP.SelectedIndex          = 0;
     this.tcEHP.ShowToolTips           = true;
     this.tcEHP.Size                   = new System.Drawing.Size(488, 376);
     this.tcEHP.SizeMode               = System.Windows.Forms.TabSizeMode.Fixed;
     this.tcEHP.TabFont                = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tcEHP.TabIndex               = 0;
     this.tcEHP.TabSlant               = 2;
     this.tcEHP.TabStop                = false;
     this.tcEHP.TabTextColor           = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.tcEHP.TabTextHAlignment      = System.Drawing.StringAlignment.Near;
     this.tcEHP.TabTextVAlignment      = System.Drawing.StringAlignment.Center;
     this.tcEHP.TagPageSelectedColor   = System.Drawing.Color.White;
     this.tcEHP.TagPageUnselectedColor = System.Drawing.Color.LightGray;
     this.tcEHP.SelectedIndexChanged  += new System.EventHandler(this.tcEHP_SelectedIndexChanged);
     //
     // tpDesign
     //
     this.tpDesign.BackColor = System.Drawing.Color.White;
     this.tpDesign.Location  = new System.Drawing.Point(4, 4);
     this.tpDesign.Name      = "tpDesign";
     this.tpDesign.Size      = new System.Drawing.Size(480, 347);
     this.tpDesign.TabIndex  = 3;
     this.tpDesign.Tag       = "design";
     this.tpDesign.Text      = "Designer";
     //
     // tpEditor
     //
     this.tpEditor.BackColor = System.Drawing.Color.White;
     this.tpEditor.Controls.Add(this.tbEditor);
     this.tpEditor.Location    = new System.Drawing.Point(4, 4);
     this.tpEditor.Name        = "tpEditor";
     this.tpEditor.Size        = new System.Drawing.Size(480, 347);
     this.tpEditor.TabIndex    = 0;
     this.tpEditor.Tag         = "edit";
     this.tpEditor.Text        = "Code";
     this.tpEditor.ToolTipText = "Edit Report Syntax";
     //
     // tbEditor
     //
     this.tbEditor.AcceptsTab    = true;
     this.tbEditor.BorderStyle   = System.Windows.Forms.BorderStyle.None;
     this.tbEditor.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tbEditor.HideSelection = false;
     this.tbEditor.Location      = new System.Drawing.Point(0, 0);
     this.tbEditor.Name          = "tbEditor";
     this.tbEditor.Size          = new System.Drawing.Size(480, 347);
     this.tbEditor.TabIndex      = 0;
     this.tbEditor.Text          = "";
     this.tbEditor.WordWrap      = false;
     this.tbEditor.TextChanged  += new System.EventHandler(this.tbEditor_TextChanged);
     //
     // tpBrowser
     //
     this.tpBrowser.BackColor = System.Drawing.Color.White;
     this.tpBrowser.Controls.Add(this.rdlPreview);
     this.tpBrowser.Location = new System.Drawing.Point(4, 4);
     this.tpBrowser.Name     = "tpBrowser";
     this.tpBrowser.Size     = new System.Drawing.Size(480, 347);
     this.tpBrowser.TabIndex = 2;
     this.tpBrowser.Tag      = "preview";
     this.tpBrowser.Text     = "Preview";
     //
     // rdlPreview
     //
     this.rdlPreview.Cursor                 = System.Windows.Forms.Cursors.Default;
     this.rdlPreview.Dock                   = System.Windows.Forms.DockStyle.Fill;
     this.rdlPreview.Folder                 = null;
     this.rdlPreview.HighlightAll           = false;
     this.rdlPreview.HighlightAllColor      = System.Drawing.Color.Fuchsia;
     this.rdlPreview.HighlightCaseSensitive = false;
     this.rdlPreview.HighlightItemColor     = System.Drawing.Color.Aqua;
     this.rdlPreview.HighlightPageItem      = null;
     this.rdlPreview.HighlightText          = null;
     this.rdlPreview.Location               = new System.Drawing.Point(0, 0);
     this.rdlPreview.Name                   = "rdlPreview";
     this.rdlPreview.PageCurrent            = 1;
     this.rdlPreview.Parameters             = null;
     this.rdlPreview.ReportName             = null;
     this.rdlPreview.ScrollMode             = Oranikle.Report.Viewer.ScrollModeEnum.Continuous;
     this.rdlPreview.SelectTool             = false;
     this.rdlPreview.ShowFindPanel          = false;
     this.rdlPreview.ShowParameterPanel     = true;
     this.rdlPreview.ShowWaitDialog         = true;
     this.rdlPreview.Size                   = new System.Drawing.Size(480, 347);
     this.rdlPreview.SourceFile             = null;
     this.rdlPreview.SourceRdl              = null;
     this.rdlPreview.TabIndex               = 0;
     this.rdlPreview.Text                   = "rdlViewer1";
     this.rdlPreview.UseTrueMargins         = true;
     this.rdlPreview.Zoom                   = 0.5495112F;
     this.rdlPreview.ZoomMode               = Oranikle.Report.Viewer.ZoomEnum.FitWidth;
     this.rdlPreview.Click                 += new System.EventHandler(this.rdlPreview_Click);
     //
     // RdlEditPreview
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.Controls.Add(this.tcEHP);
     this.Name = "RdlEditPreview";
     this.Size = new System.Drawing.Size(488, 376);
     this.tcEHP.ResumeLayout(false);
     this.tpEditor.ResumeLayout(false);
     this.tpBrowser.ResumeLayout(false);
     this.ResumeLayout(false);
 }