<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TEMPLATE Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/template/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/template/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Fri, 26 Jul 2024 08:41:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>TEMPLATE Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/template/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Create Excel Report in SSIS using a template (Export Formatted xlsx File)</title>
		<link>https://zappysys.com/blog/create-excel-report-in-ssis-using-template/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Sat, 25 Aug 2018 03:23:32 +0000</pubDate>
				<category><![CDATA[SSIS Excel Export Task]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[TEMPLATE]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=4673</guid>

					<description><![CDATA[<p>Introduction In our previous post we saw how to create excel dynamically in SSIS. Now let&#8217;s advance further and find out how to create Excel reports in SSIS using Powerful Template engine (introduced in PowerPack 2.7.4)  In this post you will learn how to use ZappySys Export Excel Task to export data from Multiple SQL Tables [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/create-excel-report-in-ssis-using-template/">Create Excel Report in SSIS using a template (Export Formatted xlsx File)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In our previous post we saw how to <a href="https://zappysys.com/blog/ssis-export-to-excel-dynamically/" target="_blank" rel="noopener">create excel dynamically in SSIS</a>. Now let&#8217;s advance further and find out how to create Excel reports in SSIS using Powerful <strong>Template engine (introduced in PowerPack 2.7.4) </strong> In this post you will learn how to use <a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">ZappySys Export Excel Task</a> to export data from Multiple SQL Tables to Single or Multiple Excel Sheets, we will use Formatting, Expressions and Filtering to export parent child datasets (Master-Detail) using Template approach which supports full customization as per your need.</p>
<p>We will be using following <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> component to make things work in this tutorial:<br />
<div class="su-table su-table-alternate">
<table style="height: 59px" width="503">
<tbody>
<tr style="line-height: 0px">
<td width="50px"><img decoding="async" class="alignnone size-full wp-image-5033" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-file-task.png" alt="ssis-export-excel-file-task" width="128" height="128" /><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener"><br />
</a></td>
<td style="vertical-align: middle"><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" target="_blank" rel="noopener">SSIS Export Excel File Task (Dynamically generate)</a></td>
</tr>
</tbody>
</table>
</div>
<p>You can check the following video to learn basic things about Export Excel Task. In future we will post video tutorial to show how Template engine works.</p>
[youtube https://www.youtube.com/watch?v=PXuOWo0xMoc&amp;w=560&amp;h=315]
<h2>Requirements</h2>
<ol>
<li>First of all, MS Excel installed.</li>
<li>Secondly, an Excel template that you can download <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">here</a>.</li>
<li>In addition, you will need SQL Server installed.</li>
<li>Aso, the SQL Server <strong>Northwind sample database</strong> that you can download <a href="https://github.com/microsoft/sql-server-samples/blob/master/samples/databases/northwind-pubs/instnwnd.sql" target="_blank" rel="noopener">here.</a></li>
<li>Additionally, SSDT for Business Intelligence.</li>
<li>Finally, use the SSIS Excel package example that you can download <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ExcelExport_TemplateReport.zip" target="_blank" rel="noopener">here</a>.</li>
</ol>
<h2>Concept about Excel Template Engine</h2>
<p>ZappySys Export Excel Template engine is compatible with <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html" target="_blank" rel="noopener">FlexCel engine described here</a>. So read it carefully to get most details about how template engine works and what elements supported in Template engine. Basically you have to use Template file which will be used to generate final excel report in SSIS. Advantage of Template engine approach compared to Simple export is you can control every aspect of your report. Also you can create nested reports use multiple datasets in a single sheet (Master-Detail JOINS) which is not possible in default export mode. The only down side of this approach is&#8230; learning curve. However once you understand concepts of Template Engine it wont take you too much time to master it.</p>
<p>In Template file you can define bands (e.g. Customer Info, Order Info&#8230;). Each band can grow in Vertical or Horizontal direction. Band must be created by <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">Named Range</a> in Excel. You must name your range in a very specific way. Based on how you suffix and prefix your named range it will decide how to grow your band (i.e. Expand Vertical or Horizontal).</p>
<p>Few things to remember with Template Engine.</p>
<ul>
<li>Each Template file must have at least one <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">Band</a> which can be used to attach Dataset.</li>
<li>Each Template file must have <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#configuration-sheet" target="_blank" rel="noopener">Config Sheet</a> somewhere.</li>
<li>You can use many functions in your Template using <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-tag-reference.html" target="_blank" rel="noopener">Tag system</a></li>
<li>You can define Charts, Graphs any elements you like in Excel Template and link to Ranges you define.</li>
</ul>
<h2>Getting started</h2>
<p>In next few section we will see step by step instructions on how to use export SQL server data to Excel using Template File approach.</p>
<h3>Prepare Sample Tables (Source data)</h3>
<p>In this example, we will create an Excel report based in two SQL Server tables from the Northwind database mentioned in the requirements. We are going to use Northwind dataset. You can download <a href="https://zappysys.com/downloads/files/nw.zip">SQL Script file from here</a>. Just download / extract and run it in SSMS to create necessary Tables with Sample Data.</p>
<ol>
<li>First of all, we will see the data displayed in the Customer table:
<div id="attachment_4679" style="width: 526px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-4679" class="wp-image-4679 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png" alt="Northwind table customer" width="516" height="403" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table.png 516w, https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-northwind-customer-table-300x234.png 300w" sizes="(max-width: 516px) 100vw, 516px" /></a><p id="caption-attachment-4679" class="wp-caption-text">Northwind table in SQL Server</p></div></li>
<li>Secondly, we will check the data of the Orders table. Note that the CustomerID is included in this table, so we can create a master-detail report based on these 2 tables:
<div id="attachment_4680" style="width: 531px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png"><img decoding="async" aria-describedby="caption-attachment-4680" class="wp-image-4680 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png" alt="SQL Server Order table" width="521" height="449" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders.png 521w, https://zappysys.com/blog/wp-content/uploads/2018/08/sql-server-orders-300x259.png 300w" sizes="(max-width: 521px) 100vw, 521px" /></a><p id="caption-attachment-4680" class="wp-caption-text">SQL Server Orders</p></div></li>
</ol>
<h3>Prepare Excel Template</h3>
<p>Now let&#8217;s create a  template file which will be used to share our exported file. To make demo simple we will use this already prepared <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">template file</a>. Lets understand how template file was created.</p>
<p>We assume you have read concepts of template engine by reading <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html" target="_blank" rel="noopener">this link</a>.</p>
<p>Basically few things to check in Template file</p>
<ol>
<li>Defining correct Config Tab (Only needed if you are using special features such as reusable expression, or filters (i.e. subset of data).</li>
<li>Defining bands which is bound to dataset</li>
</ol>
<h4>Define Reusable Configuration Settings ( &lt;#Config&gt; tab )</h4>
<p>In our example we are creating 2 extra tabs (UK, US) using filter expression (subset of dataset) so we need to use Config setting for that purpose. Notice that Config tab must be names as <strong>&lt;#Config&gt;</strong> and Reusable sections for Data, Format and Expression must be defined as below Cell A10 , Cell H10, Cell L10.</p>
<div id="attachment_4941" style="width: 727px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4941" class="size-full wp-image-4941" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png" alt="Define Config Settings for Excel Report" width="717" height="322" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config.png 717w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-excel-report-template-config-300x135.png 300w" sizes="(max-width: 717px) 100vw, 717px" /></a><p id="caption-attachment-4941" class="wp-caption-text">Define Config Settings for Excel Report</p></div>
<h4>Create Bands</h4>
<p>Now let&#8217;s look at how we define bands in template file. Read more about different types of <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#named-ranges" target="_blank" rel="noopener">bands</a> in Excel Template Engine. Band are defined using Named ranges. In our example we use two bands in first <strong>Sheet1</strong>.</p>
<ul>
<li>For customer data __<strong>cust</strong>__  (start / end with <strong>double underscore</strong>)</li>
<li>For orders data __<strong>ord</strong>__<strong>X</strong> (Read more on <a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/reports-designer-guide.html#x-ranges" target="_blank" rel="noopener">&#8220;X&#8221; ranges</a> )</li>
<li>For US tab  __<strong>cust_us</strong>__</li>
<li>For UK tab __<strong>cust_uk</strong>__</li>
</ul>
<div id="attachment_4942" style="width: 812px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4942" class="size-full wp-image-4942" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png" alt="Designing Excel Report Template (Define Ranges for Master-Detail Report)" width="802" height="413" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design.png 802w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design-300x154.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-report-template-design-768x395.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></a><p id="caption-attachment-4942" class="wp-caption-text">Designing Excel Report Template (Define Ranges for Master-Detail Report)</p></div>
<div id="attachment_4943" style="width: 527px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4943" class="size-full wp-image-4943" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png" alt="Using Filter (Subset of data) in Excel Report" width="517" height="256" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports.png 517w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-using-filter-for-excel-reports-300x149.png 300w" sizes="(max-width: 517px) 100vw, 517px" /></a><p id="caption-attachment-4943" class="wp-caption-text">Using Filter (Subset of data) in Excel Report</p></div>
<h3>Create SSIS Package</h3>
<p>Now let&#8217;s use Our sample package to get started. You can create your own Package but we have already created one to make demo simple.</p>
<ol>
<li>In an SSIS project add the <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ExcelExport_TemplateReport.zip" target="_blank" rel="noopener">Demo SSIS package</a> from the step 5 of the requirements:
<div id="attachment_4682" style="width: 363px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4682" class="size-full wp-image-4682" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png" alt="Add package SSIS" width="353" height="284" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package.png 353w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-add-existing-package-300x241.png 300w" sizes="(max-width: 353px) 100vw, 353px" /></a><p id="caption-attachment-4682" class="wp-caption-text">SSIS add package</p></div></li>
<li>In addition, in the SSIS project, drag and drop the ZS Export Excel task and <strong>Create a connection</strong> to the Northwind Database by clicking New for Source Connection.</li>
<li>and enter the source tables/queries you like to use in your report. In our example, we will use two tables.<br />
Syntax for Source data is <pre class="crayon-plain-tag">alias1=Table1_Or_Query1 | alias2=Table2_Or_Query2 .... </pre>
In this example, we will use  <strong>cust= select * from dbo.Customers | ord=dbo.orders</strong>.<br />
You can also use just the table names for both e.g. <strong>cust=dbo.Customers | ord=dbo.orders<br />
</strong></p>
<div id="attachment_4683" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4683" class="size-full wp-image-4683" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png" alt="Export SSIS to Excel" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-sql-server-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4683" class="wp-caption-text">Source table/query for Excel Report</p></div>
<p>&nbsp;</li>
<li>Check the option to <strong>Use Template Engine</strong> To get the access to Excel Report Template Tab.
<div id="attachment_9742" style="width: 736px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-9742" class="wp-image-9742 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png" alt="Use Template Engine" width="726" height="282" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine.png 726w, https://zappysys.com/blog/wp-content/uploads/2018/08/export-excel-use-template-engine-300x117.png 300w" sizes="(max-width: 726px) 100vw, 726px" /></a><p id="caption-attachment-9742" class="wp-caption-text">Use Template Engine</p></div></li>
<li>Now go to Excel Report Template tab, enter the path of the <a href="https://zappysys.com/blog/wp-content/uploads/2018/08/template.xlsx" target="_blank" rel="noopener">template file</a> which we downloaded in step 2 of the requirements and write the relationship between the customer and order tables (<strong>cust.CustomerID=ord.CustomerID</strong>):
<div id="attachment_4684" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4684" class="wp-image-4684 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png" alt="Specify template file for Excel report, define relationship for master-detail report" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-excel-template-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4684" class="wp-caption-text">Specify template file for Excel report, define relationship for master-detail report</p></div>
<p>&nbsp;</li>
<li>Finally, in the Target tab specify the path of the Excel Target and run the package:
<div id="attachment_4685" style="width: 839px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4685" class="size-full wp-image-4685" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png" alt="Excel output in SSIS based on a template" width="829" height="633" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template.png 829w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template-300x229.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-target-from-sql-to-excel-template-768x586.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></a><p id="caption-attachment-4685" class="wp-caption-text">SSIS target in Excel</p></div></li>
</ol>
<h3>Checking the results of the package to create an Excel Report in SSIS using a template</h3>
<ol>
<li>Once that you run the package, you can check the results. First of all, we will check the Sheet1. It will contain the orders grouped by customerID:
<div id="attachment_4687" style="width: 527px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4687" class="size-full wp-image-4687" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png" alt="SSIS exported from SQL Server to Excel" width="517" height="558" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel.png 517w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-export-result-excel-278x300.png 278w" sizes="(max-width: 517px) 100vw, 517px" /></a><p id="caption-attachment-4687" class="wp-caption-text">Excel report exported in SSIS based on a template</p></div>
<p>&nbsp;</li>
<li>Secondly, in the US sheet in Excel, it will show the customers filtered by the country where the country is US:
<div id="attachment_4688" style="width: 599px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4688" class="size-full wp-image-4688" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png" alt="Filter data in Excel in a template" width="589" height="509" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us.png 589w, https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-us-300x259.png 300w" sizes="(max-width: 589px) 100vw, 589px" /></a><p id="caption-attachment-4688" class="wp-caption-text">filter data by country in Excel</p></div>
<p>&nbsp;</li>
<li>Also, in the UK sheet, it will show all the customers where the country is equal to UK:
<div id="attachment_4689" style="width: 267px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-uk.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4689" class="size-full wp-image-4689" src="https://zappysys.com/blog/wp-content/uploads/2018/08/ssis-filter-export-excel-template-uk.png" alt="Filter data by country" width="257" height="299" /></a><p id="caption-attachment-4689" class="wp-caption-text">Show data where the country is the United Kingdom</p></div></li>
</ol>
<h2>Add Dynamic Comments</h2>
<p>Sometimes you might want to add dynamic comments. Several cells may need comments, similar to tooltips, which come from another data column in the database.</p>
<p>To achieve this, add the comment to the cell in the template file and place a placeholder column under the specified column.<br />
<div id="attachment_11128" style="width: 553px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11128" src="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg" alt="comment-excel-template-file" width="543" height="216" class="size-full wp-image-11128" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file.jpg 543w, https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-300x119.jpg 300w" sizes="(max-width: 543px) 100vw, 543px" /></a><p id="caption-attachment-11128" class="wp-caption-text">Place the placeholder column under the specified column.</p></div>
<p>This will allow you to achieve the desired output. The Excel file will be generated with comments in this format.<br />
<div id="attachment_11129" style="width: 546px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-11129" src="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg" alt="comment-excel-template-file-output" width="536" height="619" class="size-full wp-image-11129" srcset="https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output.jpg 536w, https://zappysys.com/blog/wp-content/uploads/2018/08/comment-excel-template-file-output-260x300.jpg 260w" sizes="(max-width: 536px) 100vw, 536px" /></a><p id="caption-attachment-11129" class="wp-caption-text">Excel File with Comments</p></div>
<h2>Other Examples</h2>
<p>There are many other examples of template engine use case <a href="http://www.tmssoftware.biz/flexcel/doc/net/samples/csharp/netframework/reports/index.html" target="_blank" rel="noopener">found here</a>. Refer to related Github link and download xlsx files from Github. You can use those template file path to run demo in SSIS.</p>
<h3>Pivot Table Example</h3>
<p>For example to run Pivot Table demo using Template Engine download below files</p>
<p><a id="57cd45330214e7aa8d9f92e02e34b095-cfa9f8db99217eb8c54e53e67f5fdf7cf732870f" class="js-navigation-open" title="Pivot Tables.template.xlsx" href="https://github.com/tmssoftware/TMS-FlexCel.NET-demos/blob/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables/Pivot%20Tables.template.xlsx">Pivot Tables.template.xlsx</a></p>
<p><a id="37a8e97c9558d4ac016b4d6eedf9dcdc-8976fe124812d71bd23534cee520df3f3822a1ec" class="js-navigation-open" title="ReportHeader.xls" href="https://github.com/tmssoftware/TMS-FlexCel.NET-demos/blob/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables/ReportHeader.xls">ReportHeader.xls</a></p>
<p>Found under below path</p>
<p>https://github.com/tmssoftware/TMS-FlexCel.NET-demos/tree/master/csharp/VS2019/netframework/Modules/20.Reports/80.Pivot%20Tables</p>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>To conclude, we learned how to create a report from data in SQL Server and export based on a template. The template not only included a nice format in Excel, but also filter and relationships between two tables. If you liked our products, enjoy them <a href="https://zappysys.com/products/ssis-powerpack/" rel="noopener">HERE</a>.</p>
<h2>References</h2>
<p>For more information about creating an Excel Report in SSIS using a template, refer to the following links:</p>
<ul>
<li><a href="http://www.tmssoftware.biz/flexcel/doc/net/guides/getting-started.html" rel="noopener">Getting Started with FlexCel Studio for the .NET Framework</a></li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-export-excel-file-task/" rel="noopener">SSIS Export Excel File Task (Dynamically generate)</a></li>
<li><a href="https://www.youtube.com/watch?v=PXuOWo0xMoc" rel="noopener">SSIS Export Excel Task &#8211; Generate Excel Dynamically</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/create-excel-report-in-ssis-using-template/">Create Excel Report in SSIS using a template (Export Formatted xlsx File)</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
