Example #1
0
 public DialogWait(Viewer viewer)
 {
     InitializeComponent();
     _viewer = viewer;
     Started = DateTime.Now;
     timer1.Interval = 1000;
     timer1_Tick(null,null);
     timer1.Start();
 }
Example #2
0
 public MDIChild(int width, int height)
 {
     this.viewer1 = new ReportingCloud.Viewer.Viewer();
     this.SuspendLayout();
     //
     // viewer1
     //
     this.viewer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.viewer1.Location = new System.Drawing.Point(0, 0);
     this.viewer1.Name     = "viewer1";
     this.viewer1.Size     = new System.Drawing.Size(width, height);
     this.viewer1.TabIndex = 0;
     //
     // RdlReader
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(width, height);
     this.Controls.Add(this.viewer1);
     this.Name = "";
     this.Text = "";
     this.ResumeLayout(false);
 }
Example #3
0
 public MDIChild(int width, int height)
 {
     this.viewer1 = new ReportingCloud.Viewer.Viewer();
     this.SuspendLayout();
     //
     // viewer1
     //
     this.viewer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.viewer1.Location = new System.Drawing.Point(0, 0);
     this.viewer1.Name = "viewer1";
     this.viewer1.Size = new System.Drawing.Size(width, height);
     this.viewer1.TabIndex = 0;
     //
     // RdlReader
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(width, height);
     this.Controls.Add(this.viewer1);
     this.Name = "";
     this.Text = "";
     this.ResumeLayout(false);
 }
Example #4
0
        public ZoomTo(Viewer.Viewer 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;
            }
        }
 /// <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 System.Windows.Forms.TabControl();
     this.tpDesign = new System.Windows.Forms.TabPage();
     this.tpEditor = new System.Windows.Forms.TabPage();
     this.tbEditor = new System.Windows.Forms.RichTextBox();
     this.pbLines = new DesignEditLines();
     this.tpBrowser = new System.Windows.Forms.TabPage();
     this.rdlPreview = new ReportingCloud.Viewer.Viewer();
     this.tcEHP.SuspendLayout();
     this.tpEditor.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbLines)).BeginInit();
     this.tpBrowser.SuspendLayout();
     this.SuspendLayout();
     //
     // tcEHP
     //
     this.tcEHP.Alignment = System.Windows.Forms.TabAlignment.Bottom;
     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.Location = new System.Drawing.Point(0, 0);
     this.tcEHP.Name = "tcEHP";
     this.tcEHP.SelectedIndex = 0;
     this.tcEHP.ShowToolTips = true;
     this.tcEHP.Size = new System.Drawing.Size(488, 376);
     this.tcEHP.TabIndex = 0;
     this.tcEHP.SelectedIndexChanged += new System.EventHandler(this.tcEHP_SelectedIndexChanged);
     //
     // tpDesign
     //
     this.tpDesign.Location = new System.Drawing.Point(4, 4);
     this.tpDesign.Name = "tpDesign";
     this.tpDesign.Size = new System.Drawing.Size(480, 350);
     this.tpDesign.TabIndex = 3;
     this.tpDesign.Tag = "design";
     this.tpDesign.Text = "Designer";
     //
     // tpEditor
     //
     this.tpEditor.Controls.Add(this.tbEditor);
     this.tpEditor.Controls.Add(this.pbLines);
     this.tpEditor.Location = new System.Drawing.Point(4, 4);
     this.tpEditor.Name = "tpEditor";
     this.tpEditor.Size = new System.Drawing.Size(480, 350);
     this.tpEditor.TabIndex = 0;
     this.tpEditor.Tag = "edit";
     this.tpEditor.Text = "RDL Text";
     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(32, 0);
     this.tbEditor.Name = "tbEditor";
     this.tbEditor.Size = new System.Drawing.Size(448, 350);
     this.tbEditor.TabIndex = 0;
     this.tbEditor.Text = "";
     this.tbEditor.WordWrap = false;
     this.tbEditor.TextChanged += new System.EventHandler(this.tbEditor_TextChanged);
     //
     // pbLines
     //
     this.pbLines.Dock = System.Windows.Forms.DockStyle.Left;
     this.pbLines.Location = new System.Drawing.Point(0, 0);
     this.pbLines.Name = "pbLines";
     this.pbLines.Size = new System.Drawing.Size(32, 350);
     this.pbLines.TabIndex = 1;
     this.pbLines.TabStop = false;
     //
     // tpBrowser
     //
     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, 350);
     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.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 = ReportingCloud.Viewer.ScrollModeEnum.Continuous;
     this.rdlPreview.ShowParameterPanel = true;
     this.rdlPreview.Size = new System.Drawing.Size(480, 350);
     this.rdlPreview.SourceFile = null;
     this.rdlPreview.SourceRdl = null;
     this.rdlPreview.TabIndex = 0;
     this.rdlPreview.Text = "rdlViewer1";
     this.rdlPreview.Zoom = 0.5474582F;
     this.rdlPreview.ZoomMode = ReportingCloud.Viewer.ZoomEnum.FitWidth;
     //
     // RdlEditPreview
     //
     this.Controls.Add(this.tcEHP);
     this.Name = "RdlEditPreview";
     this.Size = new System.Drawing.Size(488, 376);
     this.tcEHP.ResumeLayout(false);
     this.tpEditor.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pbLines)).EndInit();
     this.tpBrowser.ResumeLayout(false);
     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 System.Windows.Forms.TabControl();
     this.tpDesign   = new System.Windows.Forms.TabPage();
     this.tpEditor   = new System.Windows.Forms.TabPage();
     this.tbEditor   = new System.Windows.Forms.RichTextBox();
     this.pbLines    = new DesignEditLines();
     this.tpBrowser  = new System.Windows.Forms.TabPage();
     this.rdlPreview = new ReportingCloud.Viewer.Viewer();
     this.tcEHP.SuspendLayout();
     this.tpEditor.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbLines)).BeginInit();
     this.tpBrowser.SuspendLayout();
     this.SuspendLayout();
     //
     // tcEHP
     //
     this.tcEHP.Alignment = System.Windows.Forms.TabAlignment.Bottom;
     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.Location              = new System.Drawing.Point(0, 0);
     this.tcEHP.Name                  = "tcEHP";
     this.tcEHP.SelectedIndex         = 0;
     this.tcEHP.ShowToolTips          = true;
     this.tcEHP.Size                  = new System.Drawing.Size(488, 376);
     this.tcEHP.TabIndex              = 0;
     this.tcEHP.SelectedIndexChanged += new System.EventHandler(this.tcEHP_SelectedIndexChanged);
     //
     // tpDesign
     //
     this.tpDesign.Location = new System.Drawing.Point(4, 4);
     this.tpDesign.Name     = "tpDesign";
     this.tpDesign.Size     = new System.Drawing.Size(480, 350);
     this.tpDesign.TabIndex = 3;
     this.tpDesign.Tag      = "design";
     this.tpDesign.Text     = "Designer";
     //
     // tpEditor
     //
     this.tpEditor.Controls.Add(this.tbEditor);
     this.tpEditor.Controls.Add(this.pbLines);
     this.tpEditor.Location    = new System.Drawing.Point(4, 4);
     this.tpEditor.Name        = "tpEditor";
     this.tpEditor.Size        = new System.Drawing.Size(480, 350);
     this.tpEditor.TabIndex    = 0;
     this.tpEditor.Tag         = "edit";
     this.tpEditor.Text        = "RDL Text";
     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(32, 0);
     this.tbEditor.Name          = "tbEditor";
     this.tbEditor.Size          = new System.Drawing.Size(448, 350);
     this.tbEditor.TabIndex      = 0;
     this.tbEditor.Text          = "";
     this.tbEditor.WordWrap      = false;
     this.tbEditor.TextChanged  += new System.EventHandler(this.tbEditor_TextChanged);
     //
     // pbLines
     //
     this.pbLines.Dock     = System.Windows.Forms.DockStyle.Left;
     this.pbLines.Location = new System.Drawing.Point(0, 0);
     this.pbLines.Name     = "pbLines";
     this.pbLines.Size     = new System.Drawing.Size(32, 350);
     this.pbLines.TabIndex = 1;
     this.pbLines.TabStop  = false;
     //
     // tpBrowser
     //
     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, 350);
     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.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         = ReportingCloud.Viewer.ScrollModeEnum.Continuous;
     this.rdlPreview.ShowParameterPanel = true;
     this.rdlPreview.Size               = new System.Drawing.Size(480, 350);
     this.rdlPreview.SourceFile         = null;
     this.rdlPreview.SourceRdl          = null;
     this.rdlPreview.TabIndex           = 0;
     this.rdlPreview.Text               = "rdlViewer1";
     this.rdlPreview.Zoom               = 0.5474582F;
     this.rdlPreview.ZoomMode           = ReportingCloud.Viewer.ZoomEnum.FitWidth;
     //
     // RdlEditPreview
     //
     this.Controls.Add(this.tcEHP);
     this.Name = "RdlEditPreview";
     this.Size = new System.Drawing.Size(488, 376);
     this.tcEHP.ResumeLayout(false);
     this.tpEditor.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pbLines)).EndInit();
     this.tpBrowser.ResumeLayout(false);
     this.ResumeLayout(false);
 }