<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4926735770070291800.post5526964141051054546..comments</id><updated>2012-01-10T20:14:56.979-02:00</updated><category term='logging'/><category term='XHQ'/><category term='web application'/><category term='Visual Studio'/><category term='Win32 API'/><category term='tools'/><category term='Castle Project'/><category term='batch processing'/><category term='development'/><category term='shopping'/><category term='robot'/><category term='UI'/><category term='Haversine'/><category term='XLSX'/><category term='T4'/><category term='Windows'/><category term='algorithms'/><category term='Apple'/><category term='upgrade'/><category term='service'/><category term='lyrics'/><category term='modern age'/><category term='ASP.NET'/><category term='Google Translator Toolkit'/><category term='CountIf'/><category term='webserver'/><category term='job'/><category term='Indie'/><category term='configuration'/><category term='physical exercise'/><category term='self-improvement'/><category term='immutable data structures'/><category term='Hudson'/><category term='Google Spreadsheet API'/><category term='iOS'/><category term='Apache'/><category term='code generation'/><category term='Parallels Desktop'/><category term='IBM'/><category term='StackOverflow'/><category term='SCM'/><category term='PUC-Rio'/><category term='Compliments'/><category term='A*'/><category term='prime number'/><category term='IoC'/><category term='intro'/><category term='data model'/><category term='bitwise operators'/><category term='Microsoft Excel'/><category term='ordinary differential equation'/><category term='Web.config'/><category term='NHibernate Query Analyzer'/><category term='HPC'/><category term='F#'/><category term='memory'/><category term='MSBuild'/><category term='code snippet'/><category term='webservice'/><category term='Tomcat'/><category term='iPhone'/><category term='Firefox'/><category term='iTunes'/><category term='Excel Web App'/><category term='anniversary'/><category term='Transformations'/><category term='Dev-C++'/><category term='Eclipse'/><category term='NHibernate'/><category term='MediaMonkey'/><category term='WinRAR'/><category term='project'/><category term='tree'/><category term='svn'/><category term='.NET'/><category term='query language'/><category term='linked server'/><category term='critical path method'/><category term='answers'/><category term='reflection'/><category term='computer virus'/><category term='technology'/><category term='management UI'/><category term='coordinates'/><category term='priority queue'/><category term='Microsoft'/><category term='computer graphics'/><category term='territory'/><category term='hooks'/><category term='Finite State Machine'/><category term='list'/><category term='Xcode'/><category term='cluster'/><category term='English'/><category term='state transition diagram'/><category term='ProZ'/><category term='locale'/><category term='import'/><category term='value frequency'/><category term='tag'/><category term='jQuery UI'/><category term='template'/><category term='Oracle'/><category term='ResourceManager'/><category term='lifestyle'/><category term='tasks'/><category term='blob'/><category term='DFA'/><category term='system analyst'/><category term='bulk'/><category term='Mac OS'/><category term='virtual machine'/><category term='BSC'/><category term='productivity'/><category term='image'/><category term='Applications'/><category term='learning'/><category term='artificial intelligence'/><category term='playlist'/><category term='update'/><category term='helpers'/><category term='repository'/><category term='hardware'/><category term='public contest'/><category term='paper'/><category term='flair'/><category term='embedded'/><category term='web project'/><category term='MiniLyrics'/><category term='photography'/><category term='Lyricator'/><category term='fortran'/><category term='counting'/><category term='PLINQ'/><category term='compilers construction'/><category term='Localization'/><category term='gym'/><category term='batch renaming'/><category term='NPOI'/><category term='MP3'/><category term='COM automation'/><category term='music'/><category term='size'/><category term='VisualSVN Server'/><category term='oi'/><category term='Babylon'/><category term='Google'/><category term='resx'/><category term='Open Source'/><category term='properties'/><category term='queue'/><category term='PHP'/><category term='RavenDB'/><category term='IndieRockCafe'/><category term='MES'/><category term='data structures'/><category term='ExcelPackage'/><category term='ipod'/><category term='client server architecture'/><category term='computer engineering bachelor&apos;s degree'/><category term='Brazil'/><category term='RtPM'/><category term='Paparazzi'/><category term='server'/><category term='log4net'/><category term='ID3'/><category term='OLPC'/><category term='Datepicker'/><category term='Liferay'/><category term='academic'/><category term='fitness center'/><category term='health'/><category term='questions'/><category term='Google Data API'/><category term='continuous integration'/><category term='installation'/><category term='architectural pattern'/><category term='SQL'/><category term='management system'/><category term='encoding'/><category term='C'/><category term='geocoder'/><category term='generation y'/><category term='buy'/><category term='Google Docs'/><category term='ASP.NET Chart'/><category term='quality of life'/><category term='video game'/><category term='settings'/><category term='CPM'/><category term='SSMS'/><category term='Model-View-Presenter'/><category term='PIMS'/><category term='connection string'/><category term='Git'/><category term='iPhoto'/><category term='Apps'/><category term='society'/><category term='software engineering'/><category term='LinkedIn'/><category term='missing numbers'/><category term='family'/><category term='function'/><category term='shortcuts'/><category term='Mac'/><category term='repair'/><category term='nanotechnology'/><category term='link'/><category term='UFRJ'/><category term='character set'/><category term='Last.fm'/><category term='Chemtech'/><category term='NFA'/><category term='MPI'/><category term='backup'/><category term='OpenGL'/><category term='LINQ'/><category term='Petrobras'/><category term='jQuery'/><category term='threads'/><category term='select'/><category term='geotagging'/><category term='XSLT'/><category term='LIMS'/><category term='CRM'/><category term='retrospective'/><category term='tips and tricks'/><category term='tracking'/><category term='sequence'/><category term='badge'/><category term='DLL'/><category term='URL'/><category term='MVP'/><category term='Mp3tag'/><category term='XML'/><category term='screen capture'/><category term='language'/><category term='.NET Framework'/><category term='Mac mini'/><category term='Blogger'/><category term='HQL'/><category term='soapUI'/><category term='radio button'/><category term='scan'/><category term='inversion of control'/><category term='portlet'/><category term='Automator'/><category term='Regex'/><category term='editor'/><category term='robot arm'/><category term='masters degree'/><category term='Google Analytics'/><category term='Excel table'/><category term='Mouse'/><category term='Mac OS 10.6.7'/><category term='software'/><category term='time saver'/><category term='Razor'/><category term='HTML'/><category term='GPS'/><category term='methods'/><category term='Right'/><category term='screenshot'/><category term='OOXML'/><category term='JavaScript'/><category term='automation'/><category term='TortoiseSVN'/><category term='IIS Express'/><category term='entreprise management'/><category term='chemsite'/><category term='Google Maps'/><category term='Excel chart'/><category term='MVC'/><category term='Portuguese'/><category term='revision control'/><category term='enterprise portal'/><category term='SQL Server'/><category term='resource files'/><category term='graph'/><category term='export'/><category term='photos'/><category term='RAM'/><category term='PlayStation'/><category term='XLS'/><category term='ASP.NET MVC'/><category term='BBCode'/><category term='extension methods'/><category term='C++'/><category term='compression'/><category term='distributed database'/><category term='IndX'/><category term='download'/><category term='spreadsheet'/><category term='Siemens'/><category term='Objective-C'/><category term='top-down approach'/><category term='internet'/><category term='job interview'/><category term='Rock'/><category term='Get Lyrical'/><category term='crawler'/><category term='file'/><category term='traversal'/><category term='database'/><category term='Windows 7'/><category term='L10n'/><category term='sharing'/><category term='parallel programming'/><category term='quicksort'/><category term='stored procedure'/><category term='translation'/><category term='programming'/><category term='thread safety'/><category term='games'/><category term='ERP'/><category term='first'/><category term='website'/><category term='Java'/><category term='API'/><category term='NoSQL'/><category term='Google App Engine'/><category term='Snow Leopard'/><category term='C#'/><category term='GitHub'/><category term='binary search'/><category term='upload'/><category term='Exif'/><category term='parser'/><category term='circular queue'/><category term='data'/><category term='metadata'/><category term='batch file'/><category term='profile'/><title type='text'>Comments on Leniel Macaferi's blog: Creating Excel spreadsheets .XLS and .XLSX in C#</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.leniel.net/feeds/5526964141051054546/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default?start-index=26&amp;max-results=25'/><author><name>Leniel Macaferi</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iFmNclBdT5Y/AAAAAAAAAAI/AAAAAAAABB0/RPAsyiKRWKk/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-578680093134912470</id><published>2012-01-10T20:14:56.980-02:00</published><updated>2012-01-10T20:14:56.980-02:00</updated><title type='text'>what i did was made the reference to the several d...</title><content type='html'>what i did was made the reference to the several dll&amp;#39;s&lt;br /&gt;&lt;br /&gt;then using &lt;br /&gt;HSSFWorkbook templateWorkbook = new HSSFWorkbook()&lt;br /&gt;results in an internal error.&lt;br /&gt;I don&amp;#39;t know if IOS5 is responsible for this. The dll&amp;#39;s are from 2009</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/578680093134912470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/578680093134912470'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1326233696980#c578680093134912470' title=''/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-418566764'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-325409763490729676</id><published>2012-01-10T17:53:39.595-02:00</published><updated>2012-01-10T17:53:39.595-02:00</updated><title type='text'>Hi Richard,

From what I could read at Mono Touch ...</title><content type='html'>Hi Richard,&lt;br /&gt;&lt;br /&gt;From what I could read at Mono Touch website: http://xamarin.com/monotouch you should be able to use existing .NET code in your projects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                     Reuse existing code&lt;br /&gt;                     &lt;br /&gt;                         Import existing .NET libraries and use them in your &lt;br /&gt;                         MonoTouch apps. Easily bind existing C and Objective-C libraries as well.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know about anyone that has already used NPOI with Mono Touch apps but given the lines above it appears that NPOI can be easily integrated... just give it a try and tell us here if it really works as expected.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/325409763490729676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/325409763490729676'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1326225219595#c325409763490729676' title=''/><author><name>leniel</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-516249421'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-8813699737401228133</id><published>2012-01-10T07:12:49.987-02:00</published><updated>2012-01-10T07:12:49.987-02:00</updated><title type='text'>I would like to use this with monotouch and IOS5. ...</title><content type='html'>I would like to use this with monotouch and IOS5. Does this support IOS5 ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8813699737401228133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8813699737401228133'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1326186769987#c8813699737401228133' title=''/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-516249421'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-3194788177606477992</id><published>2012-01-06T01:38:28.118-02:00</published><updated>2012-01-06T01:38:28.118-02:00</updated><title type='text'> Hi sandepku,

As the post shows, NPOI does XLS an...</title><content type='html'> Hi sandepku,&lt;br /&gt;&lt;br /&gt;As the post shows, NPOI does XLS and &lt;b&gt;not&lt;/b&gt; XLSX. ExcelPackage does XLSX.&lt;br /&gt;&lt;br /&gt;NPOI is really fast as far as I can tell you.&lt;br /&gt;&lt;br /&gt;All the best.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3194788177606477992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3194788177606477992'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1325821108118#c3194788177606477992' title=''/><author><name>leniel</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-418566764'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-7244145519398638675</id><published>2012-01-04T08:58:57.036-02:00</published><updated>2012-01-04T08:58:57.036-02:00</updated><title type='text'>Hi Leniel, can we use NPOI to read data from xls a...</title><content type='html'>Hi Leniel, can we use NPOI to read data from xls as well as xlsx files ? or its only xls ? I am having a tough time with COM, will npoin solve my problem of needing a faster access. pls help thanks&lt;br /&gt;Sandepku</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/7244145519398638675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/7244145519398638675'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1325674737036#c7244145519398638675' title=''/><author><name>sandepku</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-516249421'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-3039293387552899467</id><published>2011-12-22T12:52:11.924-02:00</published><updated>2011-12-22T12:52:11.924-02:00</updated><title type='text'>Hi Etienne,

I&amp;#39;ve forwarded your question to T...</title><content type='html'>Hi Etienne,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve forwarded your question to Tony Qu ( the guy responsible for NPOI development ) since I haven&amp;#39;t used NPOI for this purpose.&lt;br /&gt;&lt;br /&gt;This is the answer he has sent me:&lt;br /&gt;&lt;br /&gt;&amp;quot;No. I suggest him use some third-party CSV solution. CSV is much &lt;br /&gt;easier than XLS formats. However, if NPOI supported CSV, what if they set&lt;br /&gt; CellStyle and saved as CSV. What should NPOI do? Throw exception? In &lt;br /&gt;Excel UI, it will warn you that some style will be lost. That&amp;#39;s the main&lt;br /&gt; concern and why I don&amp;#39;t want NPOI to support CSV.&amp;quot;All the best,Leniel</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3039293387552899467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3039293387552899467'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1324565531924#c3039293387552899467' title=''/><author><name>leniel</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-418566764'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-1550840583117677336</id><published>2011-12-21T14:42:20.976-02:00</published><updated>2011-12-21T14:42:20.976-02:00</updated><title type='text'>Hi,
Can we use NPOI to save Excel in CSV format?</title><content type='html'>Hi,&lt;br /&gt;Can we use NPOI to save Excel in CSV format?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1550840583117677336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1550840583117677336'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1324485740976#c1550840583117677336' title=''/><author><name>Etienne</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1490946950'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-739790101346289324</id><published>2011-11-21T11:03:41.684-02:00</published><updated>2011-11-21T11:03:41.684-02:00</updated><title type='text'>Excellent article and thanks for pointing me in th...</title><content type='html'>Excellent article and thanks for pointing me in the direction of NPOI.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/739790101346289324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/739790101346289324'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1321880621684#c739790101346289324' title=''/><author><name>Ali</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1490946950'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-801219137640997612</id><published>2011-08-25T13:15:06.054-03:00</published><updated>2011-08-25T13:15:06.054-03:00</updated><title type='text'>Awesome article.  I use NPOI but this looks like a...</title><content type='html'>Awesome article.  I use NPOI but this looks like a great example of how to save using templates.  Thx.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/801219137640997612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/801219137640997612'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1314288906054#c801219137640997612' title=''/><author><name>Dhaessel</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-516249421'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-5958045099718888962</id><published>2011-08-05T12:23:12.115-03:00</published><updated>2011-08-05T12:23:12.115-03:00</updated><title type='text'>Hi,

Please be aware that NPOI uses Apache licence...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Please be aware that NPOI uses Apache licence and ExcelPackage uses GPL licence. In other words, NPOI can be used in commercial software adn ExcelPackage cannot.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;James</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5958045099718888962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5958045099718888962'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1312557792115#c5958045099718888962' title=''/><author><name>James</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-516249421'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-3323181571164827680</id><published>2011-04-11T11:46:53.910-03:00</published><updated>2011-04-11T11:46:53.910-03:00</updated><title type='text'>Hi Nelson,

Thanks for letting me know that link n...</title><content type='html'>Hi Nelson,&lt;br /&gt;&lt;br /&gt;Thanks for letting me know that link no longer works.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s giving a 404 error: The URL you have requested could not be found. (404)&lt;br /&gt;&lt;br /&gt;The problem is because Google renamed the service called Google Pages to Google Sites. There was a redirect system in action that pointed all my files from Google Pages to this new Google Sites place. It seems the redirect system stopped working.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m updating the post with the new link. Check it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Leniel</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3323181571164827680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3323181571164827680'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1302533213910#c3323181571164827680' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_W1dLiLjFqdw/TFYhlWhGuOI/AAAAAAAAA3s/eJBkfVvEOJE/S220/Me+on+2010-07-16.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-8891071716478662548</id><published>2011-04-11T10:39:14.929-03:00</published><updated>2011-04-11T10:39:14.929-03:00</updated><title type='text'>Hi all,
Could somebody post a mirror of the origin...</title><content type='html'>Hi all,&lt;br /&gt;Could somebody post a mirror of the original project?&lt;br /&gt;Apparently, the file&lt;br /&gt;http://leniel.googlepages.com/ExcelWriterMvcProject.zip&lt;br /&gt;has been deleted :(&lt;br /&gt;thx in advance&lt;br /&gt;and great article btw.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8891071716478662548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8891071716478662548'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1302529154929#c8891071716478662548' title=''/><author><name>Nelson</name><uri>http://www.blogger.com/profile/11696517745766046700</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2095538507'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-3543315304642210165</id><published>2010-12-27T12:11:55.623-02:00</published><updated>2010-12-27T12:11:55.623-02:00</updated><title type='text'>GrSP,

First off, sorry for taking so long to answ...</title><content type='html'>GrSP,&lt;br /&gt;&lt;br /&gt;First off, sorry for taking so long to answer your comment.&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t tried to work with cell comments yet.&lt;br /&gt;&lt;br /&gt;The advice I can give you is:&lt;br /&gt;&lt;br /&gt;Search for this problem and then if don&amp;#39;t find anything related, open a thread at the Issue Tracker or Discussions page at the NPOI project page:&lt;br /&gt;&lt;br /&gt;Issue Tracker:&lt;br /&gt;&lt;a href="http://npoi.codeplex.com/workitem/list/basic" rel="nofollow"&gt;http://npoi.codeplex.com/workitem/list/basic&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Discussions:&lt;br /&gt;&lt;a href="http://npoi.codeplex.com/discussions" rel="nofollow"&gt;http://npoi.codeplex.com/discussions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps,&lt;br /&gt;&lt;br /&gt;Leniel</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3543315304642210165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3543315304642210165'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1293459115623#c3543315304642210165' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_W1dLiLjFqdw/TFYhlWhGuOI/AAAAAAAAA3s/eJBkfVvEOJE/S220/Me+on+2010-07-16.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-1010610462712461386</id><published>2010-12-08T10:06:17.524-02:00</published><updated>2010-12-08T10:06:17.524-02:00</updated><title type='text'>Yeddy,

Your best bet is this post: &lt;a href="http:...</title><content type='html'>Yeddy,&lt;br /&gt;&lt;br /&gt;Your best bet is this post: &lt;a href="http://www.leniel.net/2009/10/npoi-with-excel-table-and-dynamic-chart.html" rel="nofollow"&gt;NPOI with Excel Table and dynamic Chart&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is a workaround to overcome a current limitation of NPOI.&lt;br /&gt;&lt;br /&gt;Hope it helps,&lt;br /&gt;&lt;br /&gt;Leniel</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1010610462712461386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1010610462712461386'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1291809977524#c1010610462712461386' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_W1dLiLjFqdw/TFYhlWhGuOI/AAAAAAAAA3s/eJBkfVvEOJE/S220/Me+on+2010-07-16.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-766288969134257230</id><published>2010-12-08T02:48:32.224-02:00</published><updated>2010-12-08T02:48:32.224-02:00</updated><title type='text'>Hi Mr Leniel,

My question is similar to the first...</title><content type='html'>Hi Mr Leniel,&lt;br /&gt;&lt;br /&gt;My question is similar to the first comments. How do I attach new row using NPOI ? Lets say :&lt;br /&gt;row 1 = report title&lt;br /&gt;row 2 = start report table&lt;br /&gt;If I want to attach new row between row 1 and 2, what do I have to do? I tried Sheet.CreateRow, but unfortunately row 2 is not automatically became row 3, the new row replaced to row 3 itself...please help me&lt;br /&gt;&lt;br /&gt;many thanks in advance&lt;br /&gt;&lt;br /&gt;YD</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/766288969134257230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/766288969134257230'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1291783712224#c766288969134257230' title=''/><author><name>Yeddy</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1213310342'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-8483258640510489974</id><published>2010-09-19T23:16:13.885-03:00</published><updated>2010-09-19T23:16:13.885-03:00</updated><title type='text'>Hi Spenser,

Based on your description, it&amp;#39;s d...</title><content type='html'>Hi Spenser,&lt;br /&gt;&lt;br /&gt;Based on your description, it&amp;#39;s difficult to tell what data you have in the database.&lt;br /&gt;&lt;br /&gt;Questions I have:&lt;br /&gt;&lt;br /&gt;1 - How is your database table designed? What columns does your table have? What is the type of each column?&lt;br /&gt;&lt;br /&gt;2 - Each row of the database table would be mapped to an instance of this class?&lt;br /&gt;&lt;br /&gt;If I cannot answer your question here, feel free to ask it at StackOverflow - &lt;a href="http://stackoverflow.com/" rel="nofollow"&gt;http://stackoverflow.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.leniel.net/2010/07/stackoverflow-best-place-share-learn.html" rel="nofollow"&gt;StackOverflow: best place to share/learn programming&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8483258640510489974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8483258640510489974'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1284948973885#c8483258640510489974' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_W1dLiLjFqdw/TFYhlWhGuOI/AAAAAAAAA3s/eJBkfVvEOJE/S220/Me+on+2010-07-16.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-3444460505969392507</id><published>2010-09-13T16:09:15.895-03:00</published><updated>2010-09-13T16:09:15.895-03:00</updated><title type='text'>A number of these objects are IDisposable (HSSFWor...</title><content type='html'>A number of these objects are IDisposable (HSSFWorkbook, HSSFSheet, streams). You might want to wrap these in using blocks to insure that resources are cleaned up immediately.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3444460505969392507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/3444460505969392507'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1284404955895#c3444460505969392507' title=''/><author><name>Bill Sorensen</name><uri>http://www.truewill.net/myblog/index.php</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-84089248'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-5648668845007741147</id><published>2010-09-11T10:58:17.402-03:00</published><updated>2010-09-11T10:58:17.402-03:00</updated><title type='text'>Hi Leniel,

This is a very helpful post.  I have a...</title><content type='html'>Hi Leniel,&lt;br /&gt;&lt;br /&gt;This is a very helpful post.  I have a quick question, though, that I thought you might be able to help me with.  In order to populate the .xls file, I would like to create a Class with the following members:&lt;br /&gt;&lt;br /&gt;*  Name:  The name of the field used in the database.  This is a STRING.&lt;br /&gt;&lt;br /&gt;*  Description:  Description of the field which will appear in the Excel file next to the field itself.  This is also a STRING&lt;br /&gt;&lt;br /&gt;*  DataType:  The type of data contained in the field (for example, int, string, decimal, etc.).  Question:  what type should this member be declared as?&lt;br /&gt;&lt;br /&gt;*  Contents:  The contents of the field.  Should be declared with the data type specified in DataType above.    Question:  is it possible to declare a member with a type specified by another member?&lt;br /&gt;&lt;br /&gt;*  Row:  INTEGER containing the row number of the field&lt;br /&gt;&lt;br /&gt;*  Column:  INTEGER containing the column number of the field&lt;br /&gt;&lt;br /&gt;Is it possible to create the DataType and Contents members as I have described above in C#? &lt;br /&gt;&lt;br /&gt;Many thanks in advance for your help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5648668845007741147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5648668845007741147'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1284213497402#c5648668845007741147' title=''/><author><name>Spenser</name><uri>http://www.blogger.com/profile/17338204965046211721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2010379498'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-5492160556746101054</id><published>2010-07-09T12:54:35.328-03:00</published><updated>2010-07-09T12:54:35.328-03:00</updated><title type='text'>Jason,

Take a look at the project named SetDateCe...</title><content type='html'>Jason,&lt;br /&gt;&lt;br /&gt;Take a look at the project named SetDateCellInXls that is part of NPOI Examples package - http://npoi.codeplex.com/releases/view/19351#DownloadId=70100&lt;br /&gt;&lt;br /&gt;Here goes the code:&lt;br /&gt;&lt;br /&gt;    HSSFSheet sheet = hssfworkbook.CreateSheet(&amp;quot;new sheet&amp;quot;);&lt;br /&gt;    &lt;br /&gt;    // Create a row and put some cells in it. Rows are 0 based.&lt;br /&gt;    HSSFRow row = sheet.CreateRow(0);&lt;br /&gt;&lt;br /&gt;    // Create a cell and put a date value in it. The first cell is not styled as a date.&lt;br /&gt;    HSSFCell cell = row.CreateCell(0);&lt;br /&gt;    cell.SetCellValue(DateTime.Now);&lt;br /&gt;&lt;br /&gt;    // Style the second cell as a date (and time). It is important to Create a new cell style from the workbook&lt;br /&gt;    // otherwise you can end up modifying the built in style and effecting not only this cell but other cells.&lt;br /&gt;    HSSFCellStyle cellStyle = hssfworkbook.CreateCellStyle();&lt;br /&gt;    cellStyle.DataFormat = HSSFDataFormat.GetBuiltinFormat(&amp;quot;m/d/yy h:mm&amp;quot;);&lt;br /&gt;    cell.CellStyle=cellStyle;&lt;br /&gt;&lt;br /&gt;    //set chinese date format&lt;br /&gt;    HSSFCell cell2 = row.CreateCell(1);&lt;br /&gt;    cell2.SetCellValue(new DateTime(2008, 5, 5));&lt;br /&gt;    HSSFCellStyle cellStyle2 = hssfworkbook.CreateCellStyle();&lt;br /&gt;    HSSFDataFormat format = hssfworkbook.CreateDataFormat();&lt;br /&gt;    cellStyle2.DataFormat = format.GetFormat(&amp;quot;yyyy年m月d日&amp;quot;);&lt;br /&gt;    cell2.CellStyle = cellStyle2;&lt;br /&gt;&lt;br /&gt;Hope this helps.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5492160556746101054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5492160556746101054'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1278690875328#c5492160556746101054' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp0.blogger.com/_W1dLiLjFqdw/SG1GMvnrSWI/AAAAAAAAAW8/0AWadqDvK1c/S220/Me199x234ProZ.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-8678905149109772874</id><published>2010-07-09T12:27:18.260-03:00</published><updated>2010-07-09T12:27:18.260-03:00</updated><title type='text'>Unfortunatey that isn&amp;#39;t an option.  This is an...</title><content type='html'>Unfortunatey that isn&amp;#39;t an option.  This is an export of a dynamic data grid so the columns can be different everytime.&lt;br /&gt;&lt;br /&gt;I tried writing my own setcellformat method in the hssfdataformatter that sets the format index of a cell&amp;#39;s cellstyle.  &lt;br /&gt;&lt;br /&gt;unfortunately that applied the format to all cells deriving that style. If I change my code so taht it creates a new style for that cell and applies that format to the new style, should that fix my issue?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8678905149109772874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8678905149109772874'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1278689238260#c8678905149109772874' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/12337313685637285553</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-819003004'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-1699036048435436783</id><published>2010-07-09T11:16:37.267-03:00</published><updated>2010-07-09T11:16:37.267-03:00</updated><title type='text'>Jason,

Create an Excel template that has the numb...</title><content type='html'>Jason,&lt;br /&gt;&lt;br /&gt;Create an Excel template that has the number of columns/formats that you need.&lt;br /&gt;&lt;br /&gt;For the DateTime column, still inside Excel select the entire column and right click it. Select Format Cells... (I&amp;#39;m using Excel 2010 here) then select Date as the default for that column. Save this Excel template and reference it the way I show in this post.&lt;br /&gt;&lt;br /&gt;Using this template you should be able to fill it correctly, that is, when you insert data on the DateTime column, you&amp;#39;ll see the correct values shown in the Date format you&amp;#39;ve chosen.&lt;br /&gt;&lt;br /&gt;Note: it&amp;#39;s obvious that the data you&amp;#39;re inserting in this column should be a DateTime.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1699036048435436783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/1699036048435436783'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1278684997267#c1699036048435436783' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp0.blogger.com/_W1dLiLjFqdw/SG1GMvnrSWI/AAAAAAAAAW8/0AWadqDvK1c/S220/Me199x234ProZ.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-5194454897968707070</id><published>2010-07-09T10:55:27.786-03:00</published><updated>2010-07-09T10:55:27.786-03:00</updated><title type='text'>Leniel -

I hope you can help with this.   I need ...</title><content type='html'>Leniel -&lt;br /&gt;&lt;br /&gt;I hope you can help with this.   I need to force a value format for a date column when I create my excel document.  For some reason, when I open the document up in excel, it still displays the date as the double value that NPOI translated it too and not as a datetime.&lt;br /&gt;&lt;br /&gt;How can I set a value format for that cell when I create the document?&lt;br /&gt;&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5194454897968707070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/5194454897968707070'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1278683727786#c5194454897968707070' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-831025397'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-275605954512891788</id><published>2010-07-09T10:50:27.222-03:00</published><updated>2010-07-09T10:50:27.222-03:00</updated><title type='text'>Leniel,

I hope you might be able to steer me in t...</title><content type='html'>Leniel,&lt;br /&gt;&lt;br /&gt;I hope you might be able to steer me in the correct direction on my issue.&lt;br /&gt;&lt;br /&gt;I am using NPOI to export data for my users from another application.   When my users open up the document, all of the datetimes display as doubles.  How can I assign a datetime value format to the cell so that it will be interpreted correctly as a datetime when excel opens instead of being displayed as a double which is confusing my users.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/275605954512891788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/275605954512891788'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1278683427222#c275605954512891788' title=''/><author><name>Jason</name><uri>http://www.blogger.com/profile/12337313685637285553</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-819003004'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-7125317814425811991</id><published>2010-04-28T02:46:49.709-03:00</published><updated>2010-04-28T02:46:49.709-03:00</updated><title type='text'>Hi,
I am using NPOI to work with excel files. I op...</title><content type='html'>Hi,&lt;br /&gt;I am using NPOI to work with excel files. I open a .xls file and want to add a comment to a cell. When I create a new sheet and create a row and cell, then add comment to cell, it works truly(according to SetCellComment sample). But when I add comment to a cell in a sheet that contains comment or chart or picture does not work. It is assigned in debug mode to CellComment, but when save to a file the comment does not exist. Can you help me?&lt;br /&gt;Thanks a lot</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/7125317814425811991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/7125317814425811991'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1272433609709#c7125317814425811991' title=''/><author><name>GrSP</name><uri>http://www.blogger.com/profile/15226732865989801055</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-608968238'/></entry><entry><id>tag:blogger.com,1999:blog-4926735770070291800.post-8542235476103568298</id><published>2010-04-26T19:36:48.705-03:00</published><updated>2010-04-26T19:36:48.705-03:00</updated><title type='text'>Hi Greg,

You&amp;#39;re welcome.

This post may be of...</title><content type='html'>Hi Greg,&lt;br /&gt;&lt;br /&gt;You&amp;#39;re welcome.&lt;br /&gt;&lt;br /&gt;This post may be of some help:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.leniel.net/2009/10/npoi-with-excel-table-and-dynamic-chart.html" rel="nofollow"&gt;NPOI with Excel Table and dynamic Chart&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;All the best,&lt;br /&gt;&lt;br /&gt;Leniel Macaferi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8542235476103568298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4926735770070291800/5526964141051054546/comments/default/8542235476103568298'/><link rel='alternate' type='text/html' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html?showComment=1272321408705#c8542235476103568298' title=''/><author><name>Leniel Macaferi</name><uri>http://www.blogger.com/profile/17950821674268154143</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03351735922737092016'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp0.blogger.com/_W1dLiLjFqdw/SG1GMvnrSWI/AAAAAAAAAW8/0AWadqDvK1c/S220/Me199x234ProZ.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.leniel.net/2009/07/creating-excel-spreadsheets-xls-xlsx-c.html' ref='tag:blogger.com,1999:blog-4926735770070291800.post-5526964141051054546' source='http://www.blogger.com/feeds/4926735770070291800/posts/default/5526964141051054546' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1323186243'/></entry></feed>
