Click here to Skip to main content
15,891,708 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.6K   4.6K   47  
Word2CHM, convert a Word document to a CHM file
namespace Word2CHM
{
    partial class dlgConfig
    {
        /// <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.groupBox1 = new System.Windows.Forms.GroupBox();
            this.btnBrowse = new System.Windows.Forms.Button();
            this.txtHHCPath = new System.Windows.Forms.TextBox();
            this.chkDeleteTempFile = new System.Windows.Forms.CheckBox();
            this.btnOK = new System.Windows.Forms.Button();
            this.btnCancel = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.txtHeaderHtml = new System.Windows.Forms.TextBox();
            this.txtFooterHtml = new System.Windows.Forms.TextBox();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.btnBrowse);
            this.groupBox1.Controls.Add(this.txtHHCPath);
            this.groupBox1.Location = new System.Drawing.Point(12, 9);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(381, 50);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "HTML Help Workshop EXE path";
            // 
            // btnBrowse
            // 
            this.btnBrowse.Location = new System.Drawing.Point(293, 18);
            this.btnBrowse.Name = "btnBrowse";
            this.btnBrowse.Size = new System.Drawing.Size(75, 23);
            this.btnBrowse.TabIndex = 1;
            this.btnBrowse.Text = "Browse...";
            this.btnBrowse.UseVisualStyleBackColor = true;
            this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
            // 
            // txtHHCPath
            // 
            this.txtHHCPath.Location = new System.Drawing.Point(8, 20);
            this.txtHHCPath.Name = "txtHHCPath";
            this.txtHHCPath.Size = new System.Drawing.Size(283, 21);
            this.txtHHCPath.TabIndex = 0;
            this.txtHHCPath.Text = "C:\\Program Files\\HTML Help Workshop\\hhc.exe";
            // 
            // chkDeleteTempFile
            // 
            this.chkDeleteTempFile.AutoSize = true;
            this.chkDeleteTempFile.Location = new System.Drawing.Point(12, 65);
            this.chkDeleteTempFile.Name = "chkDeleteTempFile";
            this.chkDeleteTempFile.Size = new System.Drawing.Size(222, 16);
            this.chkDeleteTempFile.TabIndex = 1;
            this.chkDeleteTempFile.Text = "Delete template file when finish.";
            this.chkDeleteTempFile.UseVisualStyleBackColor = true;
            // 
            // btnOK
            // 
            this.btnOK.Location = new System.Drawing.Point(228, 289);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new System.Drawing.Size(75, 23);
            this.btnOK.TabIndex = 2;
            this.btnOK.Text = "&OK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.Location = new System.Drawing.Point(318, 289);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 2;
            this.btnCancel.Text = "&Cancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(10, 187);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(161, 12);
            this.label2.TabIndex = 4;
            this.label2.Text = "Default footer source node";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 93);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(191, 12);
            this.label1.TabIndex = 3;
            this.label1.Text = "Default header html source code";
            // 
            // txtHeaderHtml
            // 
            this.txtHeaderHtml.Location = new System.Drawing.Point(12, 108);
            this.txtHeaderHtml.Multiline = true;
            this.txtHeaderHtml.Name = "txtHeaderHtml";
            this.txtHeaderHtml.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtHeaderHtml.Size = new System.Drawing.Size(381, 63);
            this.txtHeaderHtml.TabIndex = 5;
            this.txtHeaderHtml.WordWrap = false;
            // 
            // txtFooterHtml
            // 
            this.txtFooterHtml.Location = new System.Drawing.Point(12, 202);
            this.txtFooterHtml.Multiline = true;
            this.txtFooterHtml.Name = "txtFooterHtml";
            this.txtFooterHtml.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtFooterHtml.Size = new System.Drawing.Size(381, 63);
            this.txtFooterHtml.TabIndex = 5;
            this.txtFooterHtml.WordWrap = false;
            // 
            // dlgConfig
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(403, 322);
            this.Controls.Add(this.txtFooterHtml);
            this.Controls.Add(this.txtHeaderHtml);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.chkDeleteTempFile);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "dlgConfig";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Config";
            this.Load += new System.EventHandler(this.dlgConfig_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.Button btnBrowse;
        private System.Windows.Forms.TextBox txtHHCPath;
        private System.Windows.Forms.CheckBox chkDeleteTempFile;
        private System.Windows.Forms.Button btnOK;
        private System.Windows.Forms.Button btnCancel;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtHeaderHtml;
        private System.Windows.Forms.TextBox txtFooterHtml;
    }
}

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