<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ooo on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/ooo/</link>
    <description>Recent content in Ooo on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo -- 0.147.8</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #213243b1d6e8932079e09227d3f3ed0c806cd0c9</copyright>
    <lastBuildDate>Mon, 29 Sep 2014 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/ooo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Snippet: Modifying Excel Files, Adding Formulas with Apache POI</title>
      <link>https://www.hascode.com/snippet-modifying-excel-files-adding-formulas-with-apache-poi/</link>
      <pubDate>Mon, 29 Sep 2014 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/snippet-modifying-excel-files-adding-formulas-with-apache-poi/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Recently I needed to modify some excel files and to add some aggregated formula fields to a sheet and the following snippet did the work for me.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;generated-excel-file-1024x416.png&#34; alt=&#34;generated excel file 1024x416&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. Modified Excel File with Formulas&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_dependencies&#34;&gt;Dependencies&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Just two dependencies needed  here: One for Apache POI and one for the Office Open XML Documents API.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;org.apache.poi&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;poi&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;3.10.1&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
	&amp;lt;groupId&amp;gt;org.apache.poi&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;poi-ooxml&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;3.10.1&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_sample_excel_file&#34;&gt;Sample Excel File&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Our sample excel file is quite empty just some empty customer information and a chart that is bound to the data grid.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
