Click here to Skip to main content
15,883,901 members
Articles / Database Development / SQL Server / SQL Server 2008

Zip Rendering Extension for SQL Server Reporting Services 2005/2008/2012

Rate me:
Please Sign up or sign in to vote.
5.00/5 (20 votes)
14 Aug 2013CPOL13 min read 203.9K   3.8K   39  
How to create and deploy a SSRS rendering extension, explained by a functional Zip Rendering extension for SSRS 2005, 2008 (R2) and 2012.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{453A1A4D-E248-4083-AD64-0B2952CF47E7}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>ZipRenderer</RootNamespace>
    <AssemblyName>ZipRenderer</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <TargetFrameworkProfile />
  </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="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\Ionic.Zip.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.ReportingServices.ExcelRendering, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\SSRS 2012 bin\Microsoft.ReportingServices.ExcelRendering.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.ReportingServices.ImageRendering">
      <HintPath>..\..\SSRS 2012 bin\Microsoft.ReportingServices.ImageRendering.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.ReportingServices.Interfaces, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\SSRS 2012 bin\Microsoft.ReportingServices.Interfaces.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.ReportingServices.ProcessingCore, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\SSRS 2012 bin\Microsoft.ReportingServices.ProcessingCore.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.configuration" />
    <Reference Include="System.Core" />
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="BuiltInSubRenderer.cs" />
    <Compile Include="PdfSubRenderer.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="ReportViewerSubRenderer.cs" />
    <Compile Include="SubRenderer.cs" />
    <Compile Include="UnclosableMemoryStream.cs" />
    <Compile Include="WebServiceSubRenderer.cs" />
    <Compile Include="ZipRenderingProvider.cs" />
  </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)


Written By
Software Developer
Netherlands Netherlands
I am a database-oriented software developer .. or an application-oriented database engineer, depending on the situation.

In past 7 or so years I have created stuff ranging from Windows Services to WPF, from GDI+ to SSIS packages and SSRS extensions.

My goal is to improve life and work for others - which should be the ultimate goal of any good software project.
And my articles on Codeproject can hopefully make you do the same.

Comments and Discussions