Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Generate PDF Using C#

, 1 Feb 2009 CPOL
Using OpenOffice to convert different document types to PDF.
article_src.zip
Solution
!Ref
cli_basetypes.dll
cli_cppuhelper.dll
cli_types.dll
cli_ure.dll
OpenOfficeService
ClassDiagram1.cd
OpenOfficeService.csproj.user
Properties
Settings.settings
OpenOfficeService.Objects
Properties
OpenOfficeWrapper
Properties
Settings.settings
PDFWeb
App_Data
ExcelSheet.xls
PDFWeb.csproj.user
Properties
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{5A811256-C2D3-4051-A803-79B853876149}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>OpenOfficeWrapper</RootNamespace>
    <AssemblyName>OpenOfficeWrapper</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </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>
    <PlatformTarget>x86</PlatformTarget>
  </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>
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="cli_basetypes, Version=1.0.10.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\!Ref\cli_basetypes.dll</HintPath>
    </Reference>
    <Reference Include="cli_cppuhelper, Version=1.0.13.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\!Ref\cli_cppuhelper.dll</HintPath>
    </Reference>
    <Reference Include="cli_types, Version=1.1.13.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\!Ref\cli_types.dll</HintPath>
    </Reference>
    <Reference Include="cli_ure, Version=1.0.13.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\!Ref\cli_ure.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="ConversionToPDF.cs" />
    <Compile Include="OfficeController.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon>Settings.settings</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\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

Predrag Tomasevic
Chief Technology Officer Atama Group
United States United States

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411019.1 | Last Updated 2 Feb 2009
Article Copyright 2008 by Predrag Tomasevic
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid