Click here to Skip to main content
15,891,033 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.CHMDom
{
    partial class dlgDocumentProperties
    {
        /// <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.label1 = new System.Windows.Forms.Label();
            this.txtTitle = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.cboDefaultDoc = new System.Windows.Forms.ComboBox();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.chkBinaryTOC = new System.Windows.Forms.CheckBox();
            this.chkBinaryIndex = new System.Windows.Forms.CheckBox();
            this.chkAutoIndex = new System.Windows.Forms.CheckBox();
            this.chkFullTextSearch = new System.Windows.Forms.CheckBox();
            this.txtName = new System.Windows.Forms.TextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.btnDelete = new System.Windows.Forms.Button();
            this.btnAddFile = new System.Windows.Forms.Button();
            this.lstFiles = new System.Windows.Forms.ListBox();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.txtFooterHtml = new System.Windows.Forms.TextBox();
            this.txtHeaderHtml = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.cmdOK = new System.Windows.Forms.Button();
            this.cmdCancel = new System.Windows.Forms.Button();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tabPage3.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(9, 55);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(41, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "Title:";
            this.label1.Click += new System.EventHandler(this.label1_Click);
            // 
            // txtTitle
            // 
            this.txtTitle.Location = new System.Drawing.Point(83, 55);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Size = new System.Drawing.Size(253, 21);
            this.txtTitle.TabIndex = 1;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(9, 79);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(53, 12);
            this.label2.TabIndex = 0;
            this.label2.Text = "Default:";
            this.label2.Click += new System.EventHandler(this.label1_Click);
            // 
            // cboDefaultDoc
            // 
            this.cboDefaultDoc.FormattingEnabled = true;
            this.cboDefaultDoc.Location = new System.Drawing.Point(83, 82);
            this.cboDefaultDoc.Name = "cboDefaultDoc";
            this.cboDefaultDoc.Size = new System.Drawing.Size(253, 20);
            this.cboDefaultDoc.TabIndex = 2;
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Top;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(352, 288);
            this.tabControl1.TabIndex = 3;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(this.chkBinaryTOC);
            this.tabPage1.Controls.Add(this.chkBinaryIndex);
            this.tabPage1.Controls.Add(this.chkAutoIndex);
            this.tabPage1.Controls.Add(this.chkFullTextSearch);
            this.tabPage1.Controls.Add(this.txtName);
            this.tabPage1.Controls.Add(this.txtTitle);
            this.tabPage1.Controls.Add(this.label5);
            this.tabPage1.Controls.Add(this.cboDefaultDoc);
            this.tabPage1.Controls.Add(this.label1);
            this.tabPage1.Controls.Add(this.label2);
            this.tabPage1.Location = new System.Drawing.Point(4, 21);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Size = new System.Drawing.Size(344, 263);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Properties";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // chkBinaryTOC
            // 
            this.chkBinaryTOC.AutoSize = true;
            this.chkBinaryTOC.Location = new System.Drawing.Point(11, 221);
            this.chkBinaryTOC.Name = "chkBinaryTOC";
            this.chkBinaryTOC.Size = new System.Drawing.Size(126, 16);
            this.chkBinaryTOC.TabIndex = 3;
            this.chkBinaryTOC.Text = "Create binary TOC";
            this.chkBinaryTOC.UseVisualStyleBackColor = true;
            // 
            // chkBinaryIndex
            // 
            this.chkBinaryIndex.AutoSize = true;
            this.chkBinaryIndex.Location = new System.Drawing.Point(11, 199);
            this.chkBinaryIndex.Name = "chkBinaryIndex";
            this.chkBinaryIndex.Size = new System.Drawing.Size(138, 16);
            this.chkBinaryIndex.TabIndex = 3;
            this.chkBinaryIndex.Text = "Create binary index";
            this.chkBinaryIndex.UseVisualStyleBackColor = true;
            // 
            // chkAutoIndex
            // 
            this.chkAutoIndex.AutoSize = true;
            this.chkAutoIndex.Location = new System.Drawing.Point(11, 155);
            this.chkAutoIndex.Name = "chkAutoIndex";
            this.chkAutoIndex.Size = new System.Drawing.Size(132, 16);
            this.chkAutoIndex.TabIndex = 3;
            this.chkAutoIndex.Text = "Auto compile index";
            this.chkAutoIndex.UseVisualStyleBackColor = true;
            // 
            // chkFullTextSearch
            // 
            this.chkFullTextSearch.AutoSize = true;
            this.chkFullTextSearch.Location = new System.Drawing.Point(11, 177);
            this.chkFullTextSearch.Name = "chkFullTextSearch";
            this.chkFullTextSearch.Size = new System.Drawing.Size(120, 16);
            this.chkFullTextSearch.TabIndex = 3;
            this.chkFullTextSearch.Text = "Full text search";
            this.chkFullTextSearch.UseVisualStyleBackColor = true;
            // 
            // txtName
            // 
            this.txtName.Location = new System.Drawing.Point(83, 28);
            this.txtName.Name = "txtName";
            this.txtName.Size = new System.Drawing.Size(253, 21);
            this.txtName.TabIndex = 1;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(9, 28);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(35, 12);
            this.label5.TabIndex = 0;
            this.label5.Text = "Name:";
            this.label5.Click += new System.EventHandler(this.label1_Click);
            // 
            // tabPage2
            // 
            this.tabPage2.Controls.Add(this.btnDelete);
            this.tabPage2.Controls.Add(this.btnAddFile);
            this.tabPage2.Controls.Add(this.lstFiles);
            this.tabPage2.Location = new System.Drawing.Point(4, 21);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Size = new System.Drawing.Size(344, 263);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "File list";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // btnDelete
            // 
            this.btnDelete.Location = new System.Drawing.Point(90, 234);
            this.btnDelete.Name = "btnDelete";
            this.btnDelete.Size = new System.Drawing.Size(75, 23);
            this.btnDelete.TabIndex = 1;
            this.btnDelete.Text = "Delete file";
            this.btnDelete.UseVisualStyleBackColor = true;
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
            // 
            // btnAddFile
            // 
            this.btnAddFile.Location = new System.Drawing.Point(9, 234);
            this.btnAddFile.Name = "btnAddFile";
            this.btnAddFile.Size = new System.Drawing.Size(75, 23);
            this.btnAddFile.TabIndex = 1;
            this.btnAddFile.Text = "Add file";
            this.btnAddFile.UseVisualStyleBackColor = true;
            this.btnAddFile.Click += new System.EventHandler(this.btnAddFile_Click);
            // 
            // lstFiles
            // 
            this.lstFiles.Dock = System.Windows.Forms.DockStyle.Top;
            this.lstFiles.FormattingEnabled = true;
            this.lstFiles.ItemHeight = 12;
            this.lstFiles.Location = new System.Drawing.Point(0, 0);
            this.lstFiles.Name = "lstFiles";
            this.lstFiles.Size = new System.Drawing.Size(344, 220);
            this.lstFiles.TabIndex = 0;
            // 
            // tabPage3
            // 
            this.tabPage3.Controls.Add(this.txtFooterHtml);
            this.tabPage3.Controls.Add(this.txtHeaderHtml);
            this.tabPage3.Controls.Add(this.label6);
            this.tabPage3.Controls.Add(this.label3);
            this.tabPage3.Location = new System.Drawing.Point(4, 21);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(344, 263);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "Header and footer";
            this.tabPage3.UseVisualStyleBackColor = true;
            // 
            // txtFooterHtml
            // 
            this.txtFooterHtml.Location = new System.Drawing.Point(3, 146);
            this.txtFooterHtml.Multiline = true;
            this.txtFooterHtml.Name = "txtFooterHtml";
            this.txtFooterHtml.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtFooterHtml.Size = new System.Drawing.Size(338, 103);
            this.txtFooterHtml.TabIndex = 1;
            this.txtFooterHtml.WordWrap = false;
            // 
            // txtHeaderHtml
            // 
            this.txtHeaderHtml.Location = new System.Drawing.Point(3, 25);
            this.txtHeaderHtml.Multiline = true;
            this.txtHeaderHtml.Name = "txtHeaderHtml";
            this.txtHeaderHtml.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtHeaderHtml.Size = new System.Drawing.Size(338, 103);
            this.txtHeaderHtml.TabIndex = 1;
            this.txtHeaderHtml.WordWrap = false;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(8, 131);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(113, 12);
            this.label6.TabIndex = 0;
            this.label6.Text = "Footer html source";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(8, 10);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(113, 12);
            this.label3.TabIndex = 0;
            this.label3.Text = "Header html source";
            // 
            // cmdOK
            // 
            this.cmdOK.Location = new System.Drawing.Point(172, 303);
            this.cmdOK.Name = "cmdOK";
            this.cmdOK.Size = new System.Drawing.Size(75, 23);
            this.cmdOK.TabIndex = 1;
            this.cmdOK.Text = "&Ok";
            this.cmdOK.UseVisualStyleBackColor = true;
            this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
            // 
            // cmdCancel
            // 
            this.cmdCancel.Location = new System.Drawing.Point(265, 303);
            this.cmdCancel.Name = "cmdCancel";
            this.cmdCancel.Size = new System.Drawing.Size(75, 23);
            this.cmdCancel.TabIndex = 1;
            this.cmdCancel.Text = "&Cancel";
            this.cmdCancel.UseVisualStyleBackColor = true;
            this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
            // 
            // dlgDocumentProperties
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(352, 336);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.cmdCancel);
            this.Controls.Add(this.cmdOK);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "dlgDocumentProperties";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "CHM properties";
            this.Load += new System.EventHandler(this.dlgDocumentProperties_Load);
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.tabPage1.PerformLayout();
            this.tabPage2.ResumeLayout(false);
            this.tabPage3.ResumeLayout(false);
            this.tabPage3.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtTitle;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.ComboBox cboDefaultDoc;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPage1;
        private System.Windows.Forms.CheckBox chkBinaryTOC;
        private System.Windows.Forms.CheckBox chkBinaryIndex;
        private System.Windows.Forms.CheckBox chkFullTextSearch;
        private System.Windows.Forms.TabPage tabPage2;
        private System.Windows.Forms.Button btnDelete;
        private System.Windows.Forms.Button btnAddFile;
        private System.Windows.Forms.ListBox lstFiles;
        private System.Windows.Forms.Button cmdOK;
        private System.Windows.Forms.Button cmdCancel;
        private System.Windows.Forms.CheckBox chkAutoIndex;
        private System.Windows.Forms.TextBox txtName;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.TabPage tabPage3;
        private System.Windows.Forms.TextBox txtHeaderHtml;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox txtFooterHtml;
        private System.Windows.Forms.Label label6;
    }
}

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