<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>ExcelPackage Source Control Rss Feed</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/ListDownloadableCommits.aspx</link><description>ExcelPackage Source Control Rss Description</description><item><title>Source code checked in, #99885</title><link>http://excelpackage.codeplex.com/SourceControl/changeset/changes/99885</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:24:31 GMT</pubDate><guid isPermaLink="false">Source code checked in, #99885 20121001092431P</guid></item><item><title>Source code checked in, #99884</title><link>http://excelpackage.codeplex.com/SourceControl/changeset/changes/99884</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:16:08 GMT</pubDate><guid isPermaLink="false">Source code checked in, #99884 20121001091608P</guid></item><item><title>Source code checked in, #99602</title><link>http://excelpackage.codeplex.com/SourceControl/changeset/changes/99602</link><description>Initial conversion to winrt version</description><author>KenTucker</author><pubDate>Tue, 11 Sep 2012 00:36:10 GMT</pubDate><guid isPermaLink="false">Source code checked in, #99602 20120911123610A</guid></item><item><title>Patch Uploaded: #11137</title><link>http://excelpackage.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/rmbuda'&gt;rmbuda&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Optimise creation of worksheets by adding Row.AppendCell&amp;#40;&amp;#41;.&lt;br /&gt;This bypasses a lot of low-level DOM XML searching used by the Cell&amp;#40;x,y&amp;#41; method and speeds up worksheet creation by a factor of 10&amp;#43;.&lt;br /&gt;&lt;br /&gt;e.g&amp;#58;&lt;br /&gt;                ExcelWorksheet worksheet &amp;#61; xlPackage.Workbook.Worksheets.Add&amp;#40;&amp;#34;Sheet1&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                var reportItems &amp;#61; GetTestData&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                foreach &amp;#40;var item in reportItems&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    ExcelRow row &amp;#61; worksheet.AppendRow&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                    row.AppendCell&amp;#40;&amp;#41;.Value &amp;#61; item&amp;#91;0&amp;#93;&amp;#59;&lt;br /&gt;                    row.AppendCell&amp;#40;&amp;#41;.Value &amp;#61; item&amp;#91;1&amp;#93;&amp;#59;&lt;br /&gt;                    row.AppendCell&amp;#40;&amp;#41;.Value &amp;#61; item&amp;#91;2&amp;#93;&amp;#59;&lt;br /&gt;                    row.AppendCell&amp;#40;&amp;#41;.Value &amp;#61; item&amp;#91;3&amp;#93;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;&lt;br /&gt;                xlPackage.Save&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;/p&gt;</description><author>rmbuda</author><pubDate>Thu, 22 Dec 2011 01:30:13 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #11137 20111222013013A</guid></item><item><title>Patch Uploaded: #9643</title><link>http://excelpackage.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/DanielTrommel'&gt;DanielTrommel&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Not sure this is a common bug, but I got the following exception&amp;#58; I tried to add a new worksheet and then the ExcelWorkSheet.Add&amp;#40;&amp;#41; method produced at the last line of the following code sniplet&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; add the new worksheet to the package&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;Uri uriWorksheet &amp;#61; new Uri&amp;#40;&amp;#34;&amp;#47;xl&amp;#47;worksheets&amp;#47;sheet&amp;#34; &amp;#43; sheetID.ToString&amp;#40;&amp;#41; &amp;#43; &amp;#34;.xml&amp;#34;, UriKind.Relative&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;PackagePart worksheetPart &amp;#61; _xlPackage.Package.CreatePart&amp;#40;uriWorksheet, &amp;#64;&amp;#34;application&amp;#47;vnd.openxmlformats-officedocument.spreadsheetml.worksheet&amp;#43;xml&amp;#34;&amp;#41;&amp;#59;                              &amp;#60;&amp;#61;&amp;#61;&amp;#61; threw exception &amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&lt;br /&gt;&lt;br /&gt;When I inspected &amp;#40;using a ZIP file manager&amp;#41;  the Excel file  to which I tried to add the new worksheet,  it turned out that the directory xl&amp;#47;worksheets&amp;#47;... contains TWO files,  whilst the file xl&amp;#47;workbook.xml only thinks there is one.&lt;br /&gt;&lt;br /&gt;Now, the thing is that ExcelPackage uses the information in the xl&amp;#47;workbook.xml to choose the next ID for a new sheet in the ExcelWorkSheet.Add&amp;#40;&amp;#41; method, and thinks that sheet with ID&amp;#61;1 is the one with the highest ID and thinks ID&amp;#61;2 can be chosen for the new worksheet. However, that one already exists&amp;#58; xl&amp;#47;worksheets&amp;#47;sheet2.xml&lt;br /&gt;&lt;br /&gt;To circumvent this problem, I replaced the above code sniplet  with the following&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; add the new worksheet to the package&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;Uri uriWorksheet &amp;#61; new Uri&amp;#40;&amp;#34;&amp;#47;xl&amp;#47;worksheets&amp;#47;sheet&amp;#34; &amp;#43; sheetID.ToString&amp;#40;&amp;#41; &amp;#43; &amp;#34;.xml&amp;#34;, UriKind.Relative&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; although not registered, the part might actually exists &amp;#40;causing an error at the .CreatePart&amp;#40;&amp;#41; method&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;if&amp;#40; _xlPackage.Package.PartExists&amp;#40; uriWorksheet &amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; since it is not referenced in the workbook, we can delete it &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;_xlPackage.Package.DeletePart&amp;#40;uriWorksheet&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;PackagePart worksheetPart &amp;#61; _xlPackage.Package.CreatePart&amp;#40;uriWorksheet, &amp;#64;&amp;#34;application&amp;#47;vnd.openxmlformats-officedocument.spreadsheetml.worksheet&amp;#43;xml&amp;#34;&amp;#41;&amp;#59;   &lt;br /&gt;                       &lt;br /&gt;&lt;/p&gt;</description><author>DanielTrommel</author><pubDate>Thu, 02 Jun 2011 20:16:13 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #9643 20110602081613P</guid></item><item><title>Patch Uploaded: #8311</title><link>http://excelpackage.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/amitfrenz'&gt;amitfrenz&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Attached is the Sample Source Code of Using ExcelPackage library.&lt;br /&gt;1. I have made an enhancement to it where we can download the zipped Excel File to Client Machine.&lt;br /&gt;2. Multiple sheets in a single file are implement.&lt;br /&gt;3. Have worked on a function which can Adjust the width of the Column.&amp;#40;as like Autofit &amp;#41;&lt;br /&gt;Hope this will help someone.&lt;br /&gt;There are 2 zipped files attached one is the Sample Code and other is the Lib version i used.&lt;br /&gt;Please Create a folder Named as &amp;#34;Report&amp;#34; in C&amp;#58;&amp;#92;            &amp;#58; as it is hard coded in the application.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Amit Srivastava&lt;br /&gt;&lt;/p&gt;</description><author>amitfrenz</author><pubDate>Wed, 09 Feb 2011 12:54:32 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #8311 20110209125432P</guid></item><item><title>Patch Applied: #4744</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/rhkodiak'&gt;rhkodiak&lt;/a&gt; has applied patch #4744.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Comment:&lt;/b&gt;&lt;br /&gt;ExcelPackage did not support right to left.&lt;/p&gt;</description><author>rhkodiak</author><pubDate>Tue, 11 Jan 2011 03:21:49 GMT</pubDate><guid isPermaLink="false">Patch Applied: #4744 20110111032149A</guid></item><item><title>Patch Applied: #1041</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/rhkodiak'&gt;rhkodiak&lt;/a&gt; has applied patch #1041.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Comment:&lt;/b&gt;&lt;br /&gt;ExcelPackage currently does not support compression for smaller file sizes.  This patch will allow for compression to be used to generate smaller file sizes.&lt;/p&gt;</description><author>rhkodiak</author><pubDate>Tue, 11 Jan 2011 02:21:32 GMT</pubDate><guid isPermaLink="false">Patch Applied: #1041 20110111022132A</guid></item><item><title>Patch Uploaded: #7256</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/vrp'&gt;vrp&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;when accessing rows  and cells , everytime it process  a search for  that cell or row in the sheet xml. &lt;br /&gt;We are using this project for one of our customer and when writing 3000 rows to an excel file , this was taking more then 30 minutes, so we tried to improve the performans.&lt;br /&gt;we have just added a simple cashing for  cells and rows and once we access one of the row or cell then we cash it and  later we access it then read the cell or row from that cash. so it helped us a lot.&lt;br /&gt;now it takes less then 3 minutes to write 3000 rows data  to an excel file. i haven&amp;#39;t tried for reading cell  or row value, ı hope it will improve the performance of reading excel cells.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------NEW-----------------------------------------------&lt;br /&gt;public ExcelCell Cell&amp;#40;int row, int col&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;            ExcelCell ret&amp;#59;&lt;br /&gt;            string key &amp;#61; String.Format&amp;#40;&amp;#34;&amp;#123;0&amp;#125;-&amp;#123;1&amp;#125;&amp;#34;,row,col&amp;#41;&amp;#59;&lt;br /&gt;            if &amp;#40;_cells.ContainsKey&amp;#40;key&amp;#41;&amp;#41;&lt;br /&gt;                ret &amp;#61; &amp;#40;ExcelCell&amp;#41;_cells&amp;#91;key&amp;#93;&amp;#59;&lt;br /&gt;            else &amp;#123;&lt;br /&gt;                ret &amp;#61; new ExcelCell&amp;#40;this, row, col&amp;#41;&amp;#59;&lt;br /&gt;                _cells.Add&amp;#40;key, ret&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;return &amp;#40;ret&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public ExcelRow Row&amp;#40;int row&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;            ExcelRow ret&amp;#59;&lt;br /&gt;            if &amp;#40;_rows.ContainsKey&amp;#40;row&amp;#41;&amp;#41;&lt;br /&gt;                ret &amp;#61; &amp;#40;ExcelRow&amp;#41;_rows&amp;#91;row&amp;#93;&amp;#59;&lt;br /&gt;            else&lt;br /&gt;            &amp;#123;&lt;br /&gt;                ret &amp;#61; new ExcelRow&amp;#40;this, row&amp;#41;&amp;#59;&lt;br /&gt;                _rows.Add&amp;#40;row, ret&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            return &amp;#40;ret&amp;#41;&amp;#59;            &amp;#9;&amp;#9;  &lt;br /&gt;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------OLD-------------------------------------------------------------------&lt;br /&gt; public ExcelCell Cell&amp;#40;int row, int col&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return &amp;#40;new ExcelCell&amp;#40;this, row, col&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt; public ExcelRow Row&amp;#40;int row&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return &amp;#40;new ExcelRow&amp;#40;this, row&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;</description><author>vrp</author><pubDate>Wed, 03 Nov 2010 14:01:08 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #7256 20101103020108P</guid></item><item><title>Source code checked in, #74794</title><link>http://excelpackage.codeplex.com/SourceControl/changeset/changes/74794</link><description>Checked in by server upgrade</description><author>_TFSSERVICE</author><pubDate>Tue, 03 Aug 2010 19:44:57 GMT</pubDate><guid isPermaLink="false">Source code checked in, #74794 20100803074457P</guid></item><item><title>Patch Uploaded: #5751</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/jmanning'&gt;jmanning&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;if you create a new package from a template but don&amp;#39;t make any changes, you hit a null ref in Save because in ExcelWorksheet.Save, there&amp;#39;s no null check around the region &amp;#35;region Delete the printer settings component &amp;#40;if it exists&amp;#41;.&lt;br /&gt;&lt;br /&gt;I just moved the null check from the &amp;#34;save header and footer&amp;#34; section &amp;#40;lower in the same method&amp;#41; so all the method&amp;#39;s contents are in the null check now.&lt;/p&gt;</description><author>jmanning</author><pubDate>Tue, 13 Apr 2010 14:32:13 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #5751 20100413023213P</guid></item><item><title>Patch Uploaded: #4744</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/YoelHor'&gt;YoelHor&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;This version included a right to left support&lt;/p&gt;</description><author>yoelhor</author><pubDate>Sun, 27 Dec 2009 13:50:59 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #4744 20091227015059P</guid></item><item><title>Patch Uploaded: #3217</title><link>http://excelpackage.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/Agent_9191'&gt;Agent_9191&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;The XPath used for setting up the Shared String information in ExcelCell.cs doesn&amp;#39;t account for an apostrophes in the string.  Need to change the line that looks like&lt;br /&gt;&lt;br /&gt;XmlNode stringNode &amp;#61; _xlWorksheet.xlPackage.Workbook.SharedStringsXml.SelectSingleNode&amp;#40;string.Format&amp;#40;&amp;#34;&amp;#47;&amp;#47;d&amp;#58;si&amp;#91;d&amp;#58;t&amp;#61;&amp;#39;&amp;#123;0&amp;#125;&amp;#39;&amp;#93;&amp;#34;, Value&amp;#41;, _xlWorksheet.NameSpaceManager&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;to one that looks like this&amp;#58;&lt;br /&gt;&lt;br /&gt;XmlNode stringNode &amp;#61; _xlWorksheet.xlPackage.Workbook.SharedStringsXml.SelectSingleNode&amp;#40;string.Format&amp;#40;&amp;#34;&amp;#47;&amp;#47;d&amp;#58;si&amp;#91;d&amp;#58;t&amp;#61;&amp;#92;&amp;#34;&amp;#123;0&amp;#125;&amp;#92;&amp;#34;&amp;#93;&amp;#34;, Value&amp;#41;, _xlWorksheet.NameSpaceManager&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#40;Line 456 in the attached file.&amp;#41;&lt;br /&gt;&lt;/p&gt;</description><author>Agent_9191</author><pubDate>Tue, 30 Jun 2009 15:53:45 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #3217 20090630035345P</guid></item><item><title>Patch Uploaded: #1847</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/site/users/view/jefight'&gt;jefight&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;test case to cause error&amp;#58;&lt;br /&gt;&lt;br /&gt;public void CauseErrorOnSave&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;        FileInfo fileInfo &amp;#61; new FileInfo&amp;#40;&amp;#34;c&amp;#58;&amp;#92;&amp;#92;myfile.xlsx&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;using &amp;#40;ExcelPackage xlPackage &amp;#61; new ExcelPackage&amp;#40;fileInfo&amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#47;&amp;#47; add a new worksheet to the empty workbook&lt;br /&gt;&amp;#9;&amp;#9;ExcelWorksheet worksheet &amp;#61; xlPackage.Workbook.Worksheets.Add&amp;#40;&amp;#34;one&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;ExcelWorksheet worksheet2 &amp;#61; xlPackage.Workbook.Worksheets.Add&amp;#40;&amp;#34;two&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;xlPackage.Save&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47;will err on ExcelWorksheet.cs&amp;#58;&lt;br /&gt;                                        &amp;#47;&amp;#47;protected internal void Save&amp;#40;&amp;#41;&amp;#58; &lt;br /&gt;                                       &amp;#47;&amp;#47;XmlNode pageSetup &amp;#61; __worksheetXml.SelectSingleNode&amp;#40;&amp;#34;&amp;#47;&amp;#47;d&amp;#58;pageSetup&amp;#34;, NameSpaceManager&amp;#41;&amp;#59;&lt;br /&gt;                                       &amp;#47;&amp;#47;where&amp;#58; _worksheetXml &amp;#61;&amp;#61; null&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;/p&gt;</description><author>jefight</author><pubDate>Thu, 18 Sep 2008 00:27:20 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #1847 20080918122720A</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/site/users/view/lsdeans'&gt;lsdeans&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Adapted from rob_dot_net&amp;#39;s patch &amp;#40;1042&amp;#41; to add in the following functionality via overloads&amp;#58;&lt;br /&gt;&lt;br /&gt;Can force all data to be treated as strings &amp;#40;critical for cases where an employeeId or similar data is used that can begin with 0&amp;#41;&lt;br /&gt;&lt;br /&gt;Can dynamically select which columns to use from DataTable and optionally set header row label &amp;#40;instead of default of DataTable&amp;#39;s column name&amp;#41;&lt;br /&gt;&lt;br /&gt;Can set the style Id to be used for the header row&lt;br /&gt;&lt;br /&gt;Default still works as before &amp;#40;although name changed to be more descriptive&amp;#41;&amp;#58;&lt;br /&gt;worksheet.LoadFromDataTable&amp;#40;dt&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Example overload&amp;#58;&lt;br /&gt;worksheet.LoadFromDataTable&amp;#40;dt, new string&amp;#91;&amp;#93; &amp;#123; &amp;#34;PersonId&amp;#34;, &amp;#34;PersonName&amp;#34;, &amp;#34;Department&amp;#34; &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Assuming your DataTable had more fields like Telephone, Email, etc, only the three fields specified above would be output to the Excel file.&lt;br /&gt;&lt;br /&gt;Again working witht he above if you wanted the header columns labeled you could do&amp;#58;&lt;br /&gt;&lt;br /&gt;KeyValuePair&amp;#60;string, string&amp;#62;&amp;#91;&amp;#93; columns &amp;#61; new KeyValuePair&amp;#60;string, string&amp;#62;&amp;#91;3&amp;#93;&amp;#59;&lt;br /&gt;columns&amp;#91;0&amp;#93; &amp;#61; new KeyValuePair&amp;#60;string, string&amp;#62;&amp;#40;&amp;#34;PersonId&amp;#34;, &amp;#34;Badge Number&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;columns&amp;#91;1&amp;#93; &amp;#61; new KeyValuePair&amp;#60;string, string&amp;#62;&amp;#40;&amp;#34;PersonName&amp;#34;, &amp;#34;Employee Name&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;columns&amp;#91;2&amp;#93; &amp;#61; new KeyValuePair&amp;#60;string, string&amp;#62;&amp;#40;&amp;#34;Department&amp;#34;, &amp;#34;Department&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;worksheet.LoadFromDataTable&amp;#40;dt, columns&amp;#41;&amp;#59;&lt;/p&gt;</description><author>lsdeans</author><pubDate>Tue, 13 May 2008 22:36:20 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20080513103620P</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=rob_dot_net'&gt;rob_dot_net&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;New &amp;#34;Load&amp;#34; method for ExcelWorksheet class to quickly load the contents of a DataTable to an empty sheet.&lt;br /&gt;&lt;br /&gt;I needed to be able to quickly populate an empty sheet with data without the need for any formatting etc... This seems to do the job quite nicely&amp;#33;&lt;br /&gt;Very fast performance... on my box easily loading 10000 rows by 5 columns in less than 1 sec.&lt;br /&gt;&lt;br /&gt;Example usage&amp;#58;&lt;br /&gt;&lt;br /&gt;DataTable dt &amp;#61; new DataTable&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47; some stuff to populate dt...&lt;br /&gt;worksheet.Load&amp;#40;dt&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;... That&amp;#39;s it&amp;#33; An exception is thrown if the target sheet is already populated.&lt;br /&gt;Hope this helps...&lt;br /&gt;Rob.&lt;br /&gt;&lt;/p&gt;</description><author>rob_dot_net</author><pubDate>Thu, 27 Mar 2008 13:36:06 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20080327013606P</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=rob_dot_net'&gt;rob_dot_net&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;I&amp;#39;ve overloaded the ExcelWorksheets.Add method to allow you to specify the use of compression when adding a new worksheet part to to the package. This makes for much smaller files as previously the package part was just &amp;#34;Stored&amp;#34; within the zip container. Hopefully it hasn&amp;#39;t broken anything... it&amp;#39;s all working for me&amp;#33;&lt;br /&gt;&lt;br /&gt;Example use is&amp;#58;&lt;br /&gt;&lt;br /&gt;ExcelWorksheet ws1 &amp;#61; xlPackage.Workbook.Worksheets.Add&amp;#40;&amp;#34;NewSheet&amp;#34;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Don&amp;#39;t use compression&lt;br /&gt;ExcelWorksheet ws2 &amp;#61; xlPackage.Workbook.Worksheets.Add&amp;#40;&amp;#34;NewSheet2&amp;#34;, true&amp;#41;&amp;#59; &amp;#47;&amp;#47; Use compression&lt;br /&gt;&lt;br /&gt;Thanks for your work on this.&lt;br /&gt;Rob.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description><author>rob_dot_net</author><pubDate>Thu, 27 Mar 2008 13:25:32 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20080327012532P</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ExcelPackage/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=jwparker1'&gt;jwparker1&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br&gt;Improved write performance on large xlsx files by adding a &amp;#34;Sequential Mode&amp;#34; to the worksheet class that assumes no rows, columns or cells exist in the worksheet.  Cells must be added sequentially from left to right, and rows from top to bottom.  Sequential mode can only be used on completely empty worksheets.  Also changed Cell.Value to object instead of string to eliminate the need for regular expression searches to determine it&amp;#39;s data type.  Sequential mode improves write performance to about 10,000 rows per second.&lt;br/&gt;&lt;br/&gt;Example usage below&amp;#58;&lt;br/&gt;&lt;br/&gt;        private void CopyDataTableToExcelSheet&amp;#40;DataTable dt, ExcelWorksheet ws&amp;#41;&lt;br/&gt;        &amp;#123;&lt;br/&gt;            int xlrow &amp;#61; 1, xlcol &amp;#61; 1&amp;#59;&lt;br/&gt;&lt;br/&gt;            ws.BeginSequentialMode&amp;#40;&amp;#41;&amp;#59;&lt;br/&gt;&lt;br/&gt;            &amp;#47;&amp;#47;Write data&lt;br/&gt;            foreach &amp;#40;DataRow drRow in dt.Rows&amp;#41;&lt;br/&gt;            &amp;#123;&lt;br/&gt;                xlrow&amp;#43;&amp;#43;&amp;#59;&lt;br/&gt;                xlcol &amp;#61; 1&amp;#59;&lt;br/&gt;                foreach &amp;#40;DataColumn dcCol in dt.Columns&amp;#41;&lt;br/&gt;                &amp;#123;&lt;br/&gt;                    ws.Cell&amp;#40;xlrow, xlcol&amp;#43;&amp;#43;&amp;#41;.Value &amp;#61; drRow&amp;#91;dcCol&amp;#93;&amp;#59;&lt;br/&gt;                &amp;#125;&lt;br/&gt;            &amp;#125;&lt;br/&gt;            ws.EndSequentialMode&amp;#40;&amp;#41;&amp;#59;&lt;br/&gt;        &amp;#125;&lt;br/&gt;&lt;br/&gt;I hope I fixed more than I broke &amp;#61;&amp;#41;&amp;#33;  Thanks for putting together this great project&amp;#33;&lt;/p&gt;</description><author>jwparker1</author><pubDate>Tue, 10 Jul 2007 21:29:17 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20070710092917P</guid></item></channel></rss>