Click here to Skip to main content
15,881,852 members
Articles / Productivity Apps and Services / Microsoft Office

XML/XSLT Word Report Generator

Rate me:
Please Sign up or sign in to vote.
3.80/5 (6 votes)
11 Jan 2009CPOL4 min read 123.2K   2.6K   84  
The tool is based on XML/XSLT, and allows a user to create a Word report from scratch, namely: construct SQL query, construct a WordML template, generate a document.
namespace WordReportGenerator
{
    partial class SqlExecutor
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <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(SqlExecutor));
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.btn_xml = new System.Windows.Forms.ToolStripButton();
            this.btn_xsd = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.btn_OK = new System.Windows.Forms.ToolStripButton();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.sql_box = new System.Windows.Forms.RichTextBox();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.xml_box = new System.Windows.Forms.RichTextBox();
            this.xsd_box = new System.Windows.Forms.RichTextBox();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStrip1.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStrip1
            // 
            this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.btn_xml,
            this.btn_xsd,
            this.toolStripSeparator1,
            this.btn_OK,
            this.toolStripButton1});
            this.toolStrip1.Location = new System.Drawing.Point(0, 344);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(580, 25);
            this.toolStrip1.TabIndex = 0;
            this.toolStrip1.Text = "toolStrip1";
            // 
            // btn_xml
            // 
            this.btn_xml.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btn_xml.Image = ((System.Drawing.Image)(resources.GetObject("btn_xml.Image")));
            this.btn_xml.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btn_xml.Name = "btn_xml";
            this.btn_xml.Size = new System.Drawing.Size(23, 22);
            this.btn_xml.Text = "Execute SQL";
            this.btn_xml.Click += new System.EventHandler(this.btn_xml_click);
            // 
            // btn_xsd
            // 
            this.btn_xsd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btn_xsd.Image = ((System.Drawing.Image)(resources.GetObject("btn_xsd.Image")));
            this.btn_xsd.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btn_xsd.Name = "btn_xsd";
            this.btn_xsd.Size = new System.Drawing.Size(23, 22);
            this.btn_xsd.Text = "Get XSD Schema";
            this.btn_xsd.Click += new System.EventHandler(this.btn_xsd_click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // btn_OK
            // 
            this.btn_OK.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.btn_OK.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btn_OK.Image = ((System.Drawing.Image)(resources.GetObject("btn_OK.Image")));
            this.btn_OK.ImageTransparentColor = System.Drawing.Color.Black;
            this.btn_OK.Name = "btn_OK";
            this.btn_OK.Size = new System.Drawing.Size(23, 22);
            this.btn_OK.Text = "Save && Quit";
            this.btn_OK.Click += new System.EventHandler(this.btn_save_click);
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.sql_box);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
            this.splitContainer1.Size = new System.Drawing.Size(580, 344);
            this.splitContainer1.SplitterDistance = 69;
            this.splitContainer1.TabIndex = 1;
            // 
            // sql_box
            // 
            this.sql_box.Dock = System.Windows.Forms.DockStyle.Fill;
            this.sql_box.Location = new System.Drawing.Point(0, 0);
            this.sql_box.Name = "sql_box";
            this.sql_box.Size = new System.Drawing.Size(580, 69);
            this.sql_box.TabIndex = 0;
            this.sql_box.Text = "";
            // 
            // splitContainer2
            // 
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.xml_box);
            // 
            // splitContainer2.Panel2
            // 
            this.splitContainer2.Panel2.Controls.Add(this.xsd_box);
            this.splitContainer2.Size = new System.Drawing.Size(580, 271);
            this.splitContainer2.SplitterDistance = 162;
            this.splitContainer2.TabIndex = 0;
            // 
            // xml_box
            // 
            this.xml_box.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xml_box.Location = new System.Drawing.Point(0, 0);
            this.xml_box.Name = "xml_box";
            this.xml_box.Size = new System.Drawing.Size(580, 162);
            this.xml_box.TabIndex = 0;
            this.xml_box.Text = "";
            // 
            // xsd_box
            // 
            this.xsd_box.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xsd_box.Location = new System.Drawing.Point(0, 0);
            this.xsd_box.Name = "xsd_box";
            this.xsd_box.Size = new System.Drawing.Size(580, 105);
            this.xsd_box.TabIndex = 0;
            this.xsd_box.Text = "";
            // 
            // toolStripButton1
            // 
            this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Black;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton1.Text = "Cancel";
            this.toolStripButton1.Click += new System.EventHandler(this.btn_cancel_click);
            // 
            // SqlExecutor
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(580, 369);
            this.Controls.Add(this.splitContainer1);
            this.Controls.Add(this.toolStrip1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "SqlExecutor";
            this.Text = "Query Analyser";
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            this.splitContainer2.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.ToolStripButton btn_xml;
        private System.Windows.Forms.ToolStripButton btn_xsd;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.RichTextBox sql_box;
        private System.Windows.Forms.SplitContainer splitContainer2;
        private System.Windows.Forms.RichTextBox xml_box;
        private System.Windows.Forms.RichTextBox xsd_box;
        private System.Windows.Forms.ToolStripButton btn_OK;
        private System.Windows.Forms.ToolStripButton toolStripButton1;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Russian Federation Russian Federation
I have Master degree in Particle Physics. During my last several years I work as software developer.

Primary Interests
- c#, c++, php, java.
- scientific programming

Comments and Discussions