Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / C#

Word2CHM, Convert a Word Document to a CHM File

Rate me:
Please Sign up or sign in to vote.
4.92/5 (18 votes)
17 Nov 2010CPOL3 min read 199.5K   4.6K   47  
Word2CHM, convert a Word document to a CHM file
namespace Word2CHM
{
    partial class frmWord2CHM
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmWord2CHM));
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
            this.txtOutputPath = new System.Windows.Forms.ToolStripTextBox();
            this.btnBrowseExportPath = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.btnNew = new System.Windows.Forms.ToolStripButton();
            this.btnOpenWord = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.Properties = new System.Windows.Forms.ToolStripButton();
            this.btnCompile = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.btnConfig = new System.Windows.Forms.ToolStripButton();
            this.tvwCHM = new System.Windows.Forms.TreeView();
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.myWebBrowser = new System.Windows.Forms.WebBrowser();
            this.label1 = new System.Windows.Forms.Label();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // toolStrip1
            // 
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripLabel1,
            this.txtOutputPath,
            this.btnBrowseExportPath,
            this.toolStripSeparator1,
            this.btnNew,
            this.btnOpenWord,
            this.toolStripSeparator2,
            this.Properties,
            this.btnCompile,
            this.toolStripSeparator3,
            this.btnConfig});
            this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStrip1.Location = new System.Drawing.Point(0, 34);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(536, 25);
            this.toolStrip1.TabIndex = 0;
            this.toolStrip1.Text = "toolStrip1";
            // 
            // toolStripLabel1
            // 
            this.toolStripLabel1.AutoToolTip = true;
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new System.Drawing.Size(77, 22);
            this.toolStripLabel1.Text = "Output path:";
            // 
            // txtOutputPath
            // 
            this.txtOutputPath.AutoSize = false;
            this.txtOutputPath.AutoToolTip = true;
            this.txtOutputPath.Name = "txtOutputPath";
            this.txtOutputPath.Size = new System.Drawing.Size(150, 20);
            // 
            // btnBrowseExportPath
            // 
            this.btnBrowseExportPath.AutoToolTip = false;
            this.btnBrowseExportPath.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.btnBrowseExportPath.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnBrowseExportPath.Name = "btnBrowseExportPath";
            this.btnBrowseExportPath.Size = new System.Drawing.Size(63, 22);
            this.btnBrowseExportPath.Text = "Browse...";
            this.btnBrowseExportPath.Click += new System.EventHandler(this.btnBrowseExportPath_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // btnNew
            // 
            this.btnNew.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btnNew.Image = ((System.Drawing.Image)(resources.GetObject("btnNew.Image")));
            this.btnNew.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnNew.Name = "btnNew";
            this.btnNew.Size = new System.Drawing.Size(23, 22);
            this.btnNew.Text = "New project";
            this.btnNew.Click += new System.EventHandler(this.btnNew_Click);
            // 
            // btnOpenWord
            // 
            this.btnOpenWord.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btnOpenWord.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenWord.Image")));
            this.btnOpenWord.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnOpenWord.Name = "btnOpenWord";
            this.btnOpenWord.Size = new System.Drawing.Size(23, 22);
            this.btnOpenWord.Text = "Open Word...";
            this.btnOpenWord.Click += new System.EventHandler(this.btnOpenWord_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // Properties
            // 
            this.Properties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.Properties.Image = ((System.Drawing.Image)(resources.GetObject("Properties.Image")));
            this.Properties.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.Properties.Name = "Properties";
            this.Properties.Size = new System.Drawing.Size(23, 22);
            this.Properties.Text = "Properties";
            this.Properties.Click += new System.EventHandler(this.Properties_Click);
            // 
            // btnCompile
            // 
            this.btnCompile.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.btnCompile.Image = ((System.Drawing.Image)(resources.GetObject("btnCompile.Image")));
            this.btnCompile.ImageTransparentColor = System.Drawing.Color.White;
            this.btnCompile.Name = "btnCompile";
            this.btnCompile.Size = new System.Drawing.Size(23, 22);
            this.btnCompile.Text = "Compile";
            this.btnCompile.Click += new System.EventHandler(this.btnCompile_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            // 
            // btnConfig
            // 
            this.btnConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnConfig.Image")));
            this.btnConfig.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnConfig.Name = "btnConfig";
            this.btnConfig.Size = new System.Drawing.Size(61, 22);
            this.btnConfig.Text = "Config";
            this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
            // 
            // tvwCHM
            // 
            this.tvwCHM.Dock = System.Windows.Forms.DockStyle.Left;
            this.tvwCHM.HideSelection = false;
            this.tvwCHM.ImageIndex = 0;
            this.tvwCHM.ImageList = this.imageList1;
            this.tvwCHM.Location = new System.Drawing.Point(0, 59);
            this.tvwCHM.Name = "tvwCHM";
            this.tvwCHM.SelectedImageIndex = 0;
            this.tvwCHM.Size = new System.Drawing.Size(205, 322);
            this.tvwCHM.TabIndex = 2;
            this.tvwCHM.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvwCHM_AfterSelect);
            // 
            // imageList1
            // 
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "");
            this.imageList1.Images.SetKeyName(1, "");
            this.imageList1.Images.SetKeyName(2, "");
            // 
            // splitter1
            // 
            this.splitter1.Location = new System.Drawing.Point(205, 59);
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(3, 322);
            this.splitter1.TabIndex = 3;
            this.splitter1.TabStop = false;
            // 
            // myWebBrowser
            // 
            this.myWebBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            this.myWebBrowser.Location = new System.Drawing.Point(208, 59);
            this.myWebBrowser.MinimumSize = new System.Drawing.Size(20, 20);
            this.myWebBrowser.Name = "myWebBrowser";
            this.myWebBrowser.Size = new System.Drawing.Size(328, 322);
            this.myWebBrowser.TabIndex = 4;
            // 
            // label1
            // 
            this.label1.BackColor = System.Drawing.Color.White;
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label1.Dock = System.Windows.Forms.DockStyle.Top;
            this.label1.Location = new System.Drawing.Point(0, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(536, 34);
            this.label1.TabIndex = 5;
            this.label1.Text = "Word2CHM is a tool which can convert ms word document to chm help file. learn mor" +
                "e , please visit http://www.sinoreport.net .";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // frmWord2CHM
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(536, 381);
            this.Controls.Add(this.myWebBrowser);
            this.Controls.Add(this.splitter1);
            this.Controls.Add(this.tvwCHM);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.label1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "frmWord2CHM";
            this.Text = "Word2CHM - www.sinoreport.net";
            this.Load += new System.EventHandler(this.frmWord2CHM_Load);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.TreeView tvwCHM;
        private System.Windows.Forms.Splitter splitter1;
        private System.Windows.Forms.WebBrowser myWebBrowser;
        private System.Windows.Forms.ImageList imageList1;
        private System.Windows.Forms.ToolStripButton btnOpenWord;
        private System.Windows.Forms.ToolStripLabel toolStripLabel1;
        private System.Windows.Forms.ToolStripTextBox txtOutputPath;
        private System.Windows.Forms.ToolStripButton btnBrowseExportPath;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripButton btnCompile;
        private System.Windows.Forms.ToolStripButton Properties;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
        private System.Windows.Forms.ToolStripButton btnConfig;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.ToolStripButton btnNew;
    }
}

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
Web Developer duchang soft
China China
yuan yong fu of duchang soft , come from CHINA , 2008 Microsoft MVP,Use GDI+,XML/XSLT, site:http://www.cnblogs.com/xdesigner/

Comments and Discussions