Click here to Skip to main content
12,068,508 members (66,154 online)
Click here to Skip to main content

Tagged as

Stats

60.2K views
3.5K downloads
43 bookmarked
Posted

Word2CHM, Convert a Word Document to a CHM File

, 17 Nov 2010 CPOL
Word2CHM, convert a Word document to a CHM file
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{A4B855F2-B26C-4BEC-83DD-DBE05D33B581}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Word2CHM</RootNamespace>
    <AssemblyName>Word2CHM</AssemblyName>
    <ApplicationIcon>Word2CHM.ico</ApplicationIcon>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" />
    <Reference Include="Office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" />
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="CHMDom\CHMDocument.cs" />
    <Compile Include="CHMDom\CHMNode.cs" />
    <Compile Include="CHMDom\CHMNodeList.cs" />
    <Compile Include="CHMDom\dlgDocumentProperties.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="CHMDom\dlgDocumentProperties.Designer.cs">
      <DependentUpon>dlgDocumentProperties.cs</DependentUpon>
    </Compile>
    <Compile Include="CHMDom\StringList.cs" />
    <Compile Include="dlgConfig.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="dlgConfig.Designer.cs">
      <DependentUpon>dlgConfig.cs</DependentUpon>
    </Compile>
    <Compile Include="dlgImportWordHtml.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="dlgImportWordHtml.Designer.cs">
      <DependentUpon>dlgImportWordHtml.cs</DependentUpon>
    </Compile>
    <None Include="app.config" />
    <Compile Include="frmWord2CHM.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmWord2CHM.Designer.cs">
      <DependentUpon>frmWord2CHM.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="CHMDom\dlgDocumentProperties.resx">
      <DependentUpon>dlgDocumentProperties.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="dlgConfig.resx">
      <SubType>Designer</SubType>
      <DependentUpon>dlgConfig.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="dlgImportWordHtml.resx">
      <DependentUpon>dlgImportWordHtml.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="frmWord2CHM.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmWord2CHM.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <None Include="sample.doc" />
    <None Include="Word2CHM.doc" />
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Lib\Microsoft.Office.Interop.Word.dll" />
    <Content Include="Lib\Office.dll" />
    <Content Include="sample.htm" />
    <Content Include="Word2CHM.ico" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="images\" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

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)

Share

About the Author

yuan yong fu
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/

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160208.1 | Last Updated 17 Nov 2010
Article Copyright 2010 by yuan yong fu
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid