<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>EPPlus Issue Tracker Rss Feed</title><link>http://epplus.codeplex.com/WorkItem/List.aspx</link><description>EPPlus Issue Tracker Rss Description</description><item><title>Commented Issue: Not a legal OleAut date [14738]</title><link>http://epplus.codeplex.com/workitem/14738</link><description>Strange error.&lt;br /&gt;&lt;br /&gt;Stack Trace&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;    at System.DateTime.DoubleDateToTicks&amp;#40;Double value&amp;#41;     &lt;br /&gt;    at System.DateTime.FromOADate&amp;#40;Double d&amp;#41;     &lt;br /&gt;    at OfficeOpenXml.ExcelRangeBase.GetFormatedText&amp;#40;Boolean forWidthCalc&amp;#41;     &lt;br /&gt;    at OfficeOpenXml.ExcelRangeBase.get_TextForWidth&amp;#40;&amp;#41;     &lt;br /&gt;    at OfficeOpenXml.ExcelRangeBase.AutoFitColumns&amp;#40;Double MinimumWidth&amp;#41;     &lt;br /&gt;    at OfficeOpenXml.ExcelRangeBase.AutoFitColumns&amp;#40;&amp;#41;     &lt;br /&gt;    at Utilities.Utils.EPPlusExelFromDataReader.WriteFromReader&amp;#40;String filePath, IDataReader dr, String&amp;#91;&amp;#93; tableNames&amp;#41;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;public  class EPPlusExelFromDataReader&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public int WriteFromReader&amp;#40; string filePath, IDataReader dr, string&amp;#91;&amp;#93; tableNames&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            &amp;#47;&amp;#47;For reporting on the logs.&lt;br /&gt;            var totalRowCount &amp;#61; 0&amp;#59;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47;create a new dataset&lt;br /&gt;            using &amp;#40;var dataSet &amp;#61; new DataSet&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47;Load the reader into the set.&lt;br /&gt;                dataSet.Load&amp;#40;dr, LoadOption.OverwriteChanges, tableNames&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                &amp;#47;&amp;#47;change the file extn to xlsx always.&lt;br /&gt;                if &amp;#40;filePath &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;                    filePath &amp;#61;  Path.Combine&amp;#40;Path.GetDirectoryName&amp;#40;filePath&amp;#41;,&lt;br /&gt;                                             Path.GetFileNameWithoutExtension&amp;#40;filePath&amp;#41; &amp;#43; &amp;#34;.xlsx&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                if &amp;#40;filePath &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    var fileInfo &amp;#61; new FileInfo&amp;#40;filePath&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47;create the excel package. this is Open office style.&lt;br /&gt;                    using &amp;#40;var excelPackage &amp;#61; new ExcelPackage&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        for &amp;#40;var i &amp;#61; 0&amp;#59; i &amp;#60; dataSet.Tables.Count&amp;#59; i&amp;#43;&amp;#43; &amp;#41;&lt;br /&gt;                        &amp;#123;&lt;br /&gt;                            Console.WriteLine&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                            Console.WriteLine&amp;#40;&amp;#34;Nowprinting for table&amp;#34;&amp;#43; i&amp;#41;&amp;#59;&lt;br /&gt;                            &amp;#47;&amp;#47;foreach data table&lt;br /&gt;                            using&amp;#40;var dataTable &amp;#61; dataSet.Tables&amp;#91;i&amp;#93;&amp;#41;&lt;br /&gt;                            &amp;#123;&lt;br /&gt;                                &amp;#47;&amp;#47;increment the variable &lt;br /&gt;                                totalRowCount &amp;#43;&amp;#61; dataTable.Rows.Count&amp;#59;&lt;br /&gt;&lt;br /&gt;                                &amp;#47;&amp;#47;addWorksheet set datasource as DataTable.&lt;br /&gt;                                var workSheet4DataTable &amp;#61; excelPackage.Workbook.Worksheets.Add&amp;#40;tableNames&amp;#91;i&amp;#93;&amp;#41;&amp;#59;&lt;br /&gt;                                workSheet4DataTable.Cells&amp;#91;&amp;#34;A1&amp;#34;&amp;#93;.LoadFromDataTable&amp;#40;dataTable, true, TableStyles.Medium2&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                                &amp;#47;&amp;#47;apply some forating&lt;br /&gt;                                if &amp;#40;dataTable.Rows.Count &amp;#60;&amp;#61; 1&amp;#41;&lt;br /&gt;                                &amp;#123;&lt;br /&gt;                                    continue&amp;#59;&lt;br /&gt;                                &amp;#125;&lt;br /&gt;&lt;br /&gt;                                for &amp;#40;var j &amp;#61; 1&amp;#59; j &amp;#60; dataTable.Columns.Count&amp;#59; j&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;                                &amp;#123;&lt;br /&gt;                                    Console.WriteLine&amp;#40;string.Format&amp;#40;&amp;#34;&amp;#91;&amp;#123;0&amp;#125;&amp;#93;-&amp;#123;1&amp;#125;&amp;#34;,&lt;br /&gt;                                                                    dataTable.Columns&amp;#91;j&amp;#93;.ColumnName&lt;br /&gt;                                                                    , dataTable.Columns&amp;#91;j&amp;#93;.DataType.FullName&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                                    &amp;#47;&amp;#47;switch &amp;#40;dataTable.Columns&amp;#91;j&amp;#93;.DataType.FullName&amp;#41;&lt;br /&gt;                                    switch &amp;#40;dataTable.Columns&amp;#91;j-1&amp;#93;.DataType.FullName&amp;#41;&lt;br /&gt;                                    &amp;#123;&lt;br /&gt;                                        case &amp;#34;System.Decimal&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.Double&amp;#34;&amp;#58;&lt;br /&gt;                                            workSheet4DataTable.Cells&amp;#91;2, j, dataTable.Rows.Count &amp;#43; 1, j&amp;#93;&lt;br /&gt;                                                .Style.Numberformat.Format &amp;#61; &amp;#34;&amp;#35;,&amp;#35;&amp;#35;0.00&amp;#34;&amp;#59;&lt;br /&gt;                                            break&amp;#59;&lt;br /&gt;                                        case &amp;#34;System.Int16&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.Int32&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.Int64&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.UInt16&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.UInt32&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.UInt64&amp;#34;&amp;#58;&lt;br /&gt;                                            workSheet4DataTable.Cells&amp;#91;2, j, dataTable.Rows.Count &amp;#43; 1, j&amp;#93;&lt;br /&gt;                                                .Style.Numberformat.Format &amp;#61; &amp;#34;&amp;#35;,&amp;#35;&amp;#35;0&amp;#34;&amp;#59;&lt;br /&gt;                                            break&amp;#59;&lt;br /&gt;                                        case &amp;#34;System.TimeSpan&amp;#34;&amp;#58;&lt;br /&gt;                                        case &amp;#34;System.DateTime&amp;#34;&amp;#58;&lt;br /&gt;                                            workSheet4DataTable.Cells&amp;#91;2, j, dataTable.Rows.Count &amp;#43; 1, j&amp;#93;&lt;br /&gt;                                                .Style.Numberformat.Format &amp;#61; &amp;#34;DD-MMM-YYYY&amp;#34;&amp;#59;&lt;br /&gt;                                            break&amp;#59;&lt;br /&gt;                                    &amp;#125;&lt;br /&gt;                                &amp;#125;&lt;br /&gt;                                workSheet4DataTable.Cells&amp;#91;workSheet4DataTable.Dimension.Address&amp;#93;.AutoFitColumns&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                            &amp;#125;&lt;br /&gt;                        &amp;#125;&lt;br /&gt;&lt;br /&gt;                        &amp;#47;&amp;#47;Save the package to the place.&lt;br /&gt;                        excelPackage.SaveAs&amp;#40;fileInfo&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            return totalRowCount&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;    &amp;#125;&lt;br /&gt;Comments: For me I&amp;#39;ve been getting this against a messy Excel file &amp;#40;that I expect to be getting monthly and out of my control somewhat&amp;#41; and I was able to work around it by modifying the EPPlus source code and re-compiling a new .dll.&amp;#10;&amp;#10;Specifically, the SetValueFromXml&amp;#40;&amp;#41; method in ExcelWorksheet.cs where it had &amp;#34;_values.SetValue&amp;#40;row, col, DateTime.FromOADate&amp;#40;res&amp;#41;&amp;#41;&amp;#59;&amp;#34; was blowing up, presumably, from a res value outside the range that the FromOADate can handle. &amp;#10;&amp;#10;See http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;system.datetime.fromoadate&amp;#40;v&amp;#61;vs.100&amp;#41;.aspx&amp;#10;&amp;#10;What I did was add an extra check and if it&amp;#39;s outside the acceptable range &amp;#34;do nothing&amp;#34; to it&amp;#58;&amp;#10;&amp;#10;if &amp;#40;res &amp;#62;&amp;#61; -657435 &amp;#38;&amp;#38; res &amp;#60;&amp;#61; 2958465.99999999&amp;#41; &amp;#123;&amp;#10;   _values.SetValue&amp;#40;row, col, DateTime.FromOADate&amp;#40;res&amp;#41;&amp;#41;&amp;#59;&amp;#10;&amp;#125; else &amp;#123;&amp;#10;   _values.SetValue&amp;#40;row, col,res&amp;#41;&amp;#59;&amp;#10;&amp;#125;&amp;#10;&amp;#10;Hope this helps somebody out there&amp;#33;&amp;#10;&amp;#10;</description><author>TomDierickx</author><pubDate>Thu, 23 May 2013 20:18:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: Not a legal OleAut date [14738] 20130523081848P</guid></item><item><title>Created Unassigned: Copy Range issue in FormulaParser branch [14860]</title><link>http://epplus.codeplex.com/workitem/14860</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Branch&amp;#58; FormulaParser&lt;br /&gt;&lt;br /&gt;To use the code compatible with Excel 2010 &amp;#40;password protected files&amp;#41;, we opted for FormulaParser branch code.&lt;br /&gt;&lt;br /&gt;It seems that the code to Copy range &amp;#40;class ExcelRangeBase&amp;#41; has stopped working after taking the code from this branch.  On debugging the error seems to occur in CellStore class &amp;#62; function&amp;#58; GetPosition&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;internal int GetPosition&amp;#40;int offset&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;     return Array.BinarySearch&amp;#40;Rows, 0, RowCount, new IndexBase&amp;#40;&amp;#41; &amp;#123; Index &amp;#61; &amp;#40;short&amp;#41;&amp;#40;offset&amp;#41; &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;When trying to copy a range A1&amp;#58;P30 to B1, the RowCount &amp;#40;in class PageIndex&amp;#41; is less than zero &amp;#40;-2&amp;#41; and hence, it throws an exception.  &lt;br /&gt;&lt;br /&gt;I believe this is Work-In-Progress but I am looking at a release that supports Excel 2010 format without breaking existing functionality.  Any idea when this will be fixed&amp;#63;&lt;br /&gt;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 07:36:41 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Copy Range issue in FormulaParser branch [14860] 20130523073641A</guid></item><item><title>Commented Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;When we try to open a file protected in Excel 2007, it works but when we try to open same file protected in Excel 2010, it does not work.  It throws following error --&lt;br /&gt;&lt;br /&gt;_Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bound_&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2007, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an encrypted binary file of size 4KB&lt;br /&gt;data 248&lt;br /&gt;text 130&lt;br /&gt;HeaderSize 164&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2010, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an un-encrypted XML file of size 5KB&lt;br /&gt;data&amp;#58; 1057&lt;br /&gt;text&amp;#58;  1836597018&lt;br /&gt;HeaderSize&amp;#58; 1836597052&lt;br /&gt;&lt;br /&gt;There are no other errors while using Excel 2010 except for this one.  Request a fix&lt;br /&gt;Comments: I checked the formulaparser branch that apparently has some fixes for Excel 2010 but it has some problems too,&amp;#10;&amp;#10;&amp;#42; Class EncryptionInfo &amp;#62;&amp;#62; MinorVersion&amp;#61;2 and MajorVersion&amp;#61;4 also uses Binary format. The below code needs change to minorVersion &amp;#60;&amp;#61; 3&amp;#10;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;if &amp;#40;minorVersion &amp;#61;&amp;#61; 3 &amp;#38;&amp;#38; majorVersion&amp;#60;&amp;#61;4&amp;#41;&amp;#10;            &amp;#123;&amp;#10;                ret &amp;#61; new EncryptionInfoBinary&amp;#40;&amp;#41;&amp;#59;&amp;#10;            &amp;#125;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;&amp;#42; Class EncryptedPackageHandler &amp;#62;&amp;#62; MinorVersion&amp;#61;4 and MajorVersion&amp;#61;4 uses Xml format but it gives Dataintegrity key missmatch error at the very first array element &amp;#10;&amp;#10;Suppressing&amp;#47;Commenting the code, ensures that the Excel file is read correctly -&amp;#10;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;                    &amp;#47;&amp;#47;for &amp;#40;int i &amp;#61; 0&amp;#59; i &amp;#60; v2.Length&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&amp;#10;                    &amp;#47;&amp;#47;&amp;#123;&amp;#10;                    &amp;#47;&amp;#47;    if &amp;#40;value&amp;#91;i&amp;#93; &amp;#33;&amp;#61; v2&amp;#91;i&amp;#93;&amp;#41;&amp;#10;                    &amp;#47;&amp;#47;    &amp;#123;&amp;#10;                    &amp;#47;&amp;#47;        throw &amp;#40;new Exception&amp;#40;&amp;#34;Dataintegrity key missmatch&amp;#34;&amp;#41;&amp;#41;&amp;#59;&amp;#10;                    &amp;#47;&amp;#47;    &amp;#125;&amp;#10;                    &amp;#47;&amp;#47;&amp;#125;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;&amp;#10;Request you to please check this</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 07:09:36 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Opening Password Protected Excel Workbook [14859] 20130523070936A</guid></item><item><title>Commented Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;When we try to open a file protected in Excel 2007, it works but when we try to open same file protected in Excel 2010, it does not work.  It throws following error --&lt;br /&gt;&lt;br /&gt;_Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bound_&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2007, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an encrypted binary file of size 4KB&lt;br /&gt;data 248&lt;br /&gt;text 130&lt;br /&gt;HeaderSize 164&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2010, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an un-encrypted XML file of size 5KB&lt;br /&gt;data&amp;#58; 1057&lt;br /&gt;text&amp;#58;  1836597018&lt;br /&gt;HeaderSize&amp;#58; 1836597052&lt;br /&gt;&lt;br /&gt;There are no other errors while using Excel 2010 except for this one.  Request a fix&lt;br /&gt;Comments: The issue found is that Excel 2010 uses a different 256 bit encryption while Excel 2007 uses 128 bit encryption hence the code below does not work correctly.&amp;#10;&amp;#10;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10; private byte&amp;#91;&amp;#93; GetOleStream&amp;#40;IStorage storage, comTypes.STATSTG statstg&amp;#41;&amp;#10;        &amp;#123;&amp;#10;            comTypes.IStream pIStream&amp;#59;&amp;#10;            storage.OpenStream&amp;#40;statstg.pwcsName,&amp;#10;               IntPtr.Zero,&amp;#10;               &amp;#40;uint&amp;#41;&amp;#40;STGM.READ &amp;#124; STGM.SHARE_EXCLUSIVE&amp;#41;,&amp;#10;               0,&amp;#10;               out pIStream&amp;#41;&amp;#59;&amp;#10;&amp;#10;            byte&amp;#91;&amp;#93; data &amp;#61; new byte&amp;#91;statstg.cbSize&amp;#93;&amp;#59;&amp;#10;            pIStream.Read&amp;#40;data, &amp;#40;int&amp;#41;statstg.cbSize, IntPtr.Zero&amp;#41;&amp;#59;&amp;#10;            Marshal.ReleaseComObject&amp;#40;pIStream&amp;#41;&amp;#59;&amp;#10;&amp;#10;            return data&amp;#59;&amp;#10;        &amp;#125;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#10;&amp;#10;&amp;#10;If we add a key CompatMode &amp;#40;DWORD&amp;#58; 32 bit, Value&amp;#58;0&amp;#41; in registry location, it uses 128-bit encryption.&amp;#10; &amp;#10;HKEY_CURRENT_USER&amp;#92;Software&amp;#92;Microsoft&amp;#92;OFFICE&amp;#92;14.0&amp;#92;Excel&amp;#92;Security&amp;#92;Crypto&amp;#10;&amp;#10;This is a hack.  Request you to please help with a permanent fix&amp;#10;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 04:28:28 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Opening Password Protected Excel Workbook [14859] 20130523042828A</guid></item><item><title>Edited Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;When we try to open a file protected in Excel 2007, it works but when we try to open same file protected in Excel 2010, it does not work.  It throws following error --&lt;br /&gt;&lt;br /&gt;_Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bound_&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2007, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an encrypted binary file of size 4KB&lt;br /&gt;data 248&lt;br /&gt;text 130&lt;br /&gt;HeaderSize 164&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; For same file protected with Excel 2010, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;EncInfo1.bin -&amp;#62; is an un-encrypted XML file of size 5KB&lt;br /&gt;data&amp;#58; 1057&lt;br /&gt;text&amp;#58;  1836597018&lt;br /&gt;HeaderSize&amp;#58; 1836597052&lt;br /&gt;&lt;br /&gt;There are no other errors while using Excel 2010 except for this one.  Request a fix&lt;br /&gt;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 04:03:17 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Opening Password Protected Excel Workbook [14859] 20130523040317A</guid></item><item><title>Edited Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;When we try to open a file protected in Excel 2007, it works but when we try to open same file protected in Excel 2010, it does not work.  It throws following error --&lt;br /&gt;&lt;br /&gt;_Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bound_&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;For same file protected with Excel 2007, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;data 248&lt;br /&gt;text 130&lt;br /&gt;HeaderSize 164&lt;br /&gt;&lt;br /&gt;For same file protected with Excel 2010, length of arrays are&amp;#58;&lt;br /&gt;&lt;br /&gt;data&amp;#58; 1057&lt;br /&gt;text&amp;#58;  1836597018&lt;br /&gt;HeaderSize&amp;#58; 1836597052&lt;br /&gt;&lt;br /&gt;There are no other errors while using Excel 2010 except for this one.  Request a fix&lt;br /&gt;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 03:48:09 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Opening Password Protected Excel Workbook [14859] 20130523034809A</guid></item><item><title>Commented Issue: Adding encryption password [14741]</title><link>http://epplus.codeplex.com/workitem/14741</link><description>I am using the command &lt;br /&gt;                       package.Encryption.Password &amp;#61; &amp;#34;abc45th&amp;#34;&amp;#59;&lt;br /&gt;                        package.Save&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;To add a password prior to saving my spreadsheet. All works fine when saving from my local PC to a network location. When I deploy my web app to my 64 bit server using the command to an the encryption password causes the save command to fail. If I comment out the encryption line all works OK, so I do not think it is a permissions issue.&lt;br /&gt;&lt;br /&gt;Anyone come accross this one&amp;#63;&lt;br /&gt;Comments: JanKallman,&amp;#10;&amp;#10;Found similar issue.. Works fine on 32-bit machine but not 64-bit machine&amp;#10;&amp;#10;https&amp;#58;&amp;#47;&amp;#47;epplus.codeplex.com&amp;#47;workitem&amp;#47;14859</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 03:38:17 GMT</pubDate><guid isPermaLink="false">Commented Issue: Adding encryption password [14741] 20130523033817A</guid></item><item><title>Edited Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Most of the password protected workbooks work fine, but in some cases we get following error&lt;br /&gt;&lt;br /&gt;__Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bounds.__&lt;br /&gt;&lt;br /&gt;The call stack appears as&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptionInfo.ReadBinary&amp;#40;byte&amp;#91;&amp;#93; data &amp;#61; &amp;#123;byte&amp;#91;1057&amp;#93;&amp;#125;&amp;#41; Line 77&amp;#9;C&amp;#35;&lt;br /&gt; &amp;#9;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptedPackageHandler.GetStreamFromPackage&amp;#40;OfficeOpenXml.Utils.IStorage storage &amp;#61; COM Object, OfficeOpenXml.ExcelEncryption encryption &amp;#61; &amp;#123;OfficeOpenXml.ExcelEncryption&amp;#125;&amp;#41; Line 632 &amp;#43; 0x20 bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptedPackageHandler.DecryptPackage&amp;#40;System.IO.FileInfo fi &amp;#61; &amp;#123;System.IO.FileInfo&amp;#125;, OfficeOpenXml.ExcelEncryption encryption &amp;#61; &amp;#123;OfficeOpenXml.ExcelEncryption&amp;#125;&amp;#41; Line 267 &amp;#43; 0x1a bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.ExcelPackage.ConstructNewFile&amp;#40;System.IO.Stream stream &amp;#61; &amp;#123;System.IO.MemoryStream&amp;#125;, string password &amp;#61; &amp;#34;PASSWORD&amp;#34;&amp;#41; Line 526 &amp;#43; 0x5a bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.ExcelPackage.ExcelPackage&amp;#40;System.IO.FileInfo newFile &amp;#61; &amp;#123;System.IO.FileInfo&amp;#125;, string password &amp;#61; &amp;#34;PASSWORD&amp;#34;&amp;#41; Line 238 &amp;#43; 0x3c bytes&amp;#9;C&amp;#35;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Can you please help&amp;#63;&lt;br /&gt;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 03:21:20 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Opening Password Protected Excel Workbook [14859] 20130523032120A</guid></item><item><title>Created Unassigned: Opening Password Protected Excel Workbook [14859]</title><link>http://epplus.codeplex.com/workitem/14859</link><description>Hi,&lt;br /&gt;&lt;br /&gt;Most of the password protected workbooks work fine, but in some cases we get following error&lt;br /&gt;&lt;br /&gt;__Source array was not long enough. Check srcIndex and length, and the array&amp;#39;s lower bounds.__&lt;br /&gt;&lt;br /&gt;The call stack appears as&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptionInfo.ReadBinary&amp;#40;byte&amp;#91;&amp;#93; data &amp;#61; &amp;#123;byte&amp;#91;1057&amp;#93;&amp;#125;&amp;#41; Line 77&amp;#9;C&amp;#35;&lt;br /&gt; &amp;#9;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptedPackageHandler.GetStreamFromPackage&amp;#40;OfficeOpenXml.Utils.IStorage storage &amp;#61; COM Object, OfficeOpenXml.ExcelEncryption encryption &amp;#61; &amp;#123;OfficeOpenXml.ExcelEncryption&amp;#125;&amp;#41; Line 632 &amp;#43; 0x20 bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.Utils.EncryptedPackageHandler.DecryptPackage&amp;#40;System.IO.FileInfo fi &amp;#61; &amp;#123;System.IO.FileInfo&amp;#125;, OfficeOpenXml.ExcelEncryption encryption &amp;#61; &amp;#123;OfficeOpenXml.ExcelEncryption&amp;#125;&amp;#41; Line 267 &amp;#43; 0x1a bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.ExcelPackage.ConstructNewFile&amp;#40;System.IO.Stream stream &amp;#61; &amp;#123;System.IO.MemoryStream&amp;#125;, string password &amp;#61; &amp;#34;PASSWORD&amp;#34;&amp;#41; Line 526 &amp;#43; 0x5a bytes&amp;#9;C&amp;#35;&lt;br /&gt;&lt;br /&gt;EPPlus.dll&amp;#33;OfficeOpenXml.ExcelPackage.ExcelPackage&amp;#40;System.IO.FileInfo newFile &amp;#61; &amp;#123;System.IO.FileInfo&amp;#125;, string password &amp;#61; &amp;#34;PASSWORD&amp;#34;&amp;#41; Line 238 &amp;#43; 0x3c bytes&amp;#9;C&amp;#35;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;The EncryptedPackageHandler gives this error on line 77&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Array.Copy&amp;#40;data, 44, text, 0, &amp;#40;int&amp;#41;HeaderSize - 34&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Can you please help&amp;#63;&lt;br /&gt;</description><author>punitganshani</author><pubDate>Thu, 23 May 2013 03:04:00 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Opening Password Protected Excel Workbook [14859] 20130523030400A</guid></item><item><title>Commented Unassigned: Invalid URL Exception  [14858]</title><link>http://epplus.codeplex.com/workitem/14858</link><description>Hi&amp;#33;&lt;br /&gt;&lt;br /&gt;I have a problem, if I try to open an XLSX file with EPPlus. The File was created with Microsoft Office 2010.&lt;br /&gt;&lt;br /&gt;My code is&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;   foreach &amp;#40;string fajl in fajlok&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        FileInfo fn &amp;#61; new FileInfo&amp;#40;&amp;#64;fajl&amp;#41;&amp;#59;&lt;br /&gt;                        string indicated_user &amp;#61; fn.Name.Split&amp;#40;&amp;#39;_&amp;#39;&amp;#41;&amp;#91;0&amp;#93;&amp;#59;&lt;br /&gt;                        ExcelPackage ep &amp;#61; new ExcelPackage&amp;#40;fn&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                        Constans.GLOBALLOG.LogWrite&amp;#40;ep.Workbook.Worksheets.Count&amp;#40;&amp;#41;.ToString&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        if &amp;#40;ep.Workbook.Worksheets.Count&amp;#40;&amp;#41; &amp;#61;&amp;#61; 3&amp;#41;&lt;br /&gt;                        &amp;#123;&lt;br /&gt;.....&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;The Exception occurs at ep.Workbook.Worksheets.Count&amp;#40;&amp;#41;.&lt;br /&gt;I read, that this problem has already fixed, however, it happened...&lt;br /&gt;&lt;br /&gt;Is any fix for this problem&amp;#63;&lt;br /&gt;I use the latest DLL version&amp;#58; EPPlus 3.1 Apr 11, 2012, Stable &lt;br /&gt;&lt;br /&gt;Thanks for the answer&amp;#33;&lt;br /&gt;Zsolt Abdai&lt;br /&gt;Comments: Hi&amp;#33;&amp;#13;&amp;#10;&amp;#13;&amp;#10;I fixed this problem.&amp;#13;&amp;#10;The main reason for the exception is, that Microsoft allows you to put INVALID hyperlink to the cells.&amp;#13;&amp;#10;I put this value in a cell&amp;#58; ecsomany&amp;#64;google&amp;#58;huszar and I hit enter in my Excel, than a hyperlink was created, however, the link is invalid. &amp;#40;mailto&amp;#58; ecsomany&amp;#64;google&amp;#58;huszar&amp;#41;&amp;#13;&amp;#10;&amp;#13;&amp;#10;Sad, that in Office 2013 is this bug present too...&amp;#13;&amp;#10;&amp;#13;&amp;#10;In your code&amp;#58; if you found Hyperlink in the worksheet, you try to parse it, and the invalid URI exception occours. &amp;#13;&amp;#10;I checked out the source of your latest version and modified only one method, you can use it.&amp;#13;&amp;#10;&amp;#13;&amp;#10;In ExcelWorksheet.cs at line 784 is a method, which load and validate the hyperlinks&amp;#58; called LoadHyperLinks&amp;#13;&amp;#10;&amp;#13;&amp;#10;In the third if section I wrote a catch, if any exception occours by parsing the Uri. In this case I set  cell.Hyperlink &amp;#61; new Uri&amp;#40;&amp;#34;&amp;#34;&amp;#41;&amp;#59;&amp;#13;&amp;#10;&amp;#13;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#13;&amp;#10; if &amp;#40;xr.GetAttribute&amp;#40;&amp;#34;id&amp;#34;, ExcelPackage.schemaRelationships&amp;#41; &amp;#33;&amp;#61; null&amp;#41;&amp;#13;&amp;#10;                    &amp;#123;&amp;#13;&amp;#10;                        cell.HyperLinkRId &amp;#61; xr.GetAttribute&amp;#40;&amp;#34;id&amp;#34;, ExcelPackage.schemaRelationships&amp;#41;&amp;#59;&amp;#13;&amp;#10;                        try&amp;#13;&amp;#10;                        &amp;#123;&amp;#13;&amp;#10;                            var uri &amp;#61; Part.GetRelationship&amp;#40;cell.HyperLinkRId&amp;#41;.TargetUri&amp;#59;&amp;#13;&amp;#10;                            try&amp;#13;&amp;#10;                            &amp;#123;&amp;#13;&amp;#10;                                if &amp;#40;uri.IsAbsoluteUri&amp;#41;&amp;#13;&amp;#10;                                &amp;#123;&amp;#13;&amp;#10;                                    cell.Hyperlink &amp;#61; new ExcelHyperLink&amp;#40;HttpUtility.UrlDecode&amp;#40;uri.OriginalString&amp;#41;&amp;#41;&amp;#59;&amp;#13;&amp;#10;                                &amp;#125;&amp;#13;&amp;#10;                                else&amp;#13;&amp;#10;                                &amp;#123;&amp;#13;&amp;#10;                                    cell.Hyperlink &amp;#61; new ExcelHyperLink&amp;#40;HttpUtility.UrlDecode&amp;#40;uri.OriginalString&amp;#41;, UriKind.Relative&amp;#41;&amp;#59;&amp;#13;&amp;#10;                                &amp;#125;&amp;#13;&amp;#10;                            &amp;#125;&amp;#13;&amp;#10;                            catch&amp;#13;&amp;#10;                            &amp;#123;&amp;#13;&amp;#10;                                &amp;#47;&amp;#47;We should never end up here, but to aviod unhandled exceptions we just set the uri here. JK&amp;#13;&amp;#10;                                cell.Hyperlink &amp;#61; uri&amp;#59;&amp;#13;&amp;#10;                            &amp;#125;&amp;#13;&amp;#10;                        &amp;#125;&amp;#13;&amp;#10;                        catch&amp;#13;&amp;#10;                        &amp;#123;&amp;#13;&amp;#10;                            &amp;#47;&amp;#47;if the hiperlink is invalid, just ignore and reset the link to empty URL&amp;#13;&amp;#10;                            cell.Hyperlink &amp;#61; new Uri&amp;#40;&amp;#34;&amp;#34;&amp;#41;&amp;#59;&amp;#13;&amp;#10;                        &amp;#125;&amp;#13;&amp;#10;                        Part.DeleteRelationship&amp;#40;cell.HyperLinkRId&amp;#41;&amp;#59; &amp;#47;&amp;#47;Delete the relationship, it is recreated when we save the package.&amp;#13;&amp;#10;                    &amp;#125;&amp;#13;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#13;&amp;#10;&amp;#13;&amp;#10;I attached my solution CS file.&amp;#13;&amp;#10;&amp;#13;&amp;#10;Best regards,&amp;#13;&amp;#10;Zsolt Abdai&amp;#13;&amp;#10;&amp;#13;&amp;#10;</description><author>abdaizs</author><pubDate>Thu, 16 May 2013 16:00:59 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Invalid URL Exception  [14858] 20130516040059P</guid></item><item><title>Created Unassigned: Invalid URL Exception  [14858]</title><link>http://epplus.codeplex.com/workitem/14858</link><description>Hi&amp;#33;&lt;br /&gt;&lt;br /&gt;I have a problem, if I try to open an XLSX file with EPPlus. The File was created with Microsoft Office 2010.&lt;br /&gt;&lt;br /&gt;My code is&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;   foreach &amp;#40;string fajl in fajlok&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        FileInfo fn &amp;#61; new FileInfo&amp;#40;&amp;#64;fajl&amp;#41;&amp;#59;&lt;br /&gt;                        string indicated_user &amp;#61; fn.Name.Split&amp;#40;&amp;#39;_&amp;#39;&amp;#41;&amp;#91;0&amp;#93;&amp;#59;&lt;br /&gt;                        ExcelPackage ep &amp;#61; new ExcelPackage&amp;#40;fn&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                        Constans.GLOBALLOG.LogWrite&amp;#40;ep.Workbook.Worksheets.Count&amp;#40;&amp;#41;.ToString&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        if &amp;#40;ep.Workbook.Worksheets.Count&amp;#40;&amp;#41; &amp;#61;&amp;#61; 3&amp;#41;&lt;br /&gt;                        &amp;#123;&lt;br /&gt;.....&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;The Exception occurs at ep.Workbook.Worksheets.Count&amp;#40;&amp;#41;.&lt;br /&gt;I read, that this problem has already fixed, however, it happened...&lt;br /&gt;&lt;br /&gt;Is any fix for this problem&amp;#63;&lt;br /&gt;I use the latest DLL version&amp;#58; EPPlus 3.1 Apr 11, 2012, Stable &lt;br /&gt;&lt;br /&gt;Thanks for the answer&amp;#33;&lt;br /&gt;Zsolt Abdai&lt;br /&gt;</description><author>abdaizs</author><pubDate>Thu, 16 May 2013 14:45:21 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Invalid URL Exception  [14858] 20130516024521P</guid></item><item><title>Created Unassigned: Slight issue with AutoFitColumns [14857]</title><link>http://epplus.codeplex.com/workitem/14857</link><description>I just found this library, and am amazed at how easy it is to work with. Thanks&amp;#33;&lt;br /&gt;&lt;br /&gt;I did notice one slight issue though. I found&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;ws.Cells.AutoFitColumns&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;to try and Auto Fit the columns &amp;#40;I know, it was a stretch&amp;#41;. However, there is a slight anomaly with it.&lt;br /&gt;&lt;br /&gt;In my attached image, you&amp;#39;ll notice that the last column has an increased width, however it doesn&amp;#39;t max to the size of all of the text.&lt;br /&gt;&lt;br /&gt;Since I&amp;#39;m using the default method call, is there a &amp;#34;hidden&amp;#34; maximum that it hit and stopped&amp;#63; If that wasn&amp;#39;t the last column, would it have filled in all of the way like the other columns&amp;#63;&lt;br /&gt;</description><author>krillgar</author><pubDate>Wed, 15 May 2013 19:19:13 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Slight issue with AutoFitColumns [14857] 20130515071913P</guid></item><item><title>Created Unassigned: Adding comments gives XmlException. [14856]</title><link>http://epplus.codeplex.com/workitem/14856</link><description>Opening XLSX with Excel and saving it resolves the file issue but when I run my program it somehow brokes the excel file again on the second time. It&amp;#39;s weird. So this error comes in third time when I run the program.&lt;br /&gt;&lt;br /&gt;CODE&amp;#58;&lt;br /&gt;&lt;br /&gt;        public static void SetComment&amp;#40;ExcelRange cell, string text&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            if &amp;#40;text &amp;#33;&amp;#61; &amp;#34;&amp;#34;&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;               &lt;br /&gt;                if &amp;#40;cell.Comment &amp;#61;&amp;#61; null&amp;#41; cell.AddComment&amp;#40;text, &amp;#34;CRM&amp;#34;&amp;#41;&amp;#59; else cell.Comment.Text &amp;#61; text.Replace&amp;#40;&amp;#34;&amp;#60;&amp;#34;,&amp;#34;&amp;#34;&amp;#41;.Replace&amp;#40;&amp;#34;&amp;#62;&amp;#34;,&amp;#34;&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                cell.Comment.AutoFit &amp;#61; true&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TRACE&amp;#58;&lt;br /&gt;&lt;br /&gt;Unhandled Exception&amp;#58; System.Xml.XmlException&amp;#58; Unexpected end tag. Line 8721, pos&lt;br /&gt;ition 7.&lt;br /&gt;   at System.Xml.XmlTextReaderImpl.Throw&amp;#40;Exception e&amp;#41;&lt;br /&gt;   at System.Xml.XmlTextReaderImpl.Throw&amp;#40;String res, String arg&amp;#41;&lt;br /&gt;   at System.Xml.XmlTextReaderImpl.ParseDocumentContent&amp;#40;&amp;#41;&lt;br /&gt;   at System.Xml.XmlTextReaderImpl.Read&amp;#40;&amp;#41;&lt;br /&gt;   at System.Xml.XmlLoader.LoadNode&amp;#40;Boolean skipOverWhitespace&amp;#41;&lt;br /&gt;   at System.Xml.XmlLoader.LoadDocSequence&amp;#40;XmlDocument parentDoc&amp;#41;&lt;br /&gt;   at System.Xml.XmlLoader.Load&amp;#40;XmlDocument doc, XmlReader reader, Boolean prese&lt;br /&gt;rveWhitespace&amp;#41;&lt;br /&gt;   at System.Xml.XmlDocument.Load&amp;#40;XmlReader reader&amp;#41;&lt;br /&gt;   at OfficeOpenXml.XmlHelper.LoadXmlSafe&amp;#40;XmlDocument xmlDoc, Stream stream&amp;#41;&lt;br /&gt;   at OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingBaseCollection..ctor&amp;#40;ExcelPackage&lt;br /&gt; pck, ExcelWorksheet ws, Uri uri&amp;#41;&lt;br /&gt;   at OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingCommentCollection..ctor&amp;#40;ExcelPack&lt;br /&gt;age pck, ExcelWorksheet ws, Uri uri&amp;#41;&lt;br /&gt;   at OfficeOpenXml.ExcelWorksheet.CreateVmlCollection&amp;#40;&amp;#41;&lt;br /&gt;   at OfficeOpenXml.ExcelWorksheet.get_Comments&amp;#40;&amp;#41;&lt;br /&gt;   at OfficeOpenXml.ExcelRangeBase.get_Comment&amp;#40;&amp;#41;&lt;br /&gt;   at CashflowUpdater.Program.SetComment&amp;#40;ExcelRange cell, String text&amp;#41;&lt;br /&gt;   at CashflowUpdater.Program.SaveData&amp;#40;ExcelWorkbook&amp;#38; wb&amp;#41;&lt;br /&gt;   at CashflowUpdater.Program.UpdateCashFlowXLS&amp;#40;DateTime StartDate, String FileP&lt;br /&gt;ath&amp;#41;&lt;br /&gt;   at CashflowUpdater.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;</description><author>tuomaslaa</author><pubDate>Tue, 14 May 2013 12:27:55 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Adding comments gives XmlException. [14856] 20130514122755P</guid></item><item><title>Created Unassigned: Is there a way to pass DataTable while creating CHART in a Worksheet? [14855]</title><link>http://epplus.codeplex.com/workitem/14855</link><description>Is there a functionality to pass a DataTable, to Create Chart or Multiple Charts in a single Worksheet &amp;#63;&lt;br /&gt;&lt;br /&gt;If yes , please guide me.&lt;br /&gt;If no, please let me know a workaround for the same, if possible.&lt;br /&gt;&lt;br /&gt;As I have to create Multiple Charts in a Single Worksheet to which I would pass 2-3 different DataTables without writing the DataTable in Excel Sheet.&lt;br /&gt;&lt;br /&gt;I am stuck with this scenario, rest all has worked perfect for me, using the Excellent EPPLUS dll.&lt;br /&gt;&lt;br /&gt;Many Thanks.&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Vipul&lt;br /&gt;</description><author>vips3483</author><pubDate>Mon, 13 May 2013 14:16:13 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Is there a way to pass DataTable while creating CHART in a Worksheet? [14855] 20130513021613P</guid></item><item><title>Created Unassigned: Character values - issue [14854]</title><link>http://epplus.codeplex.com/workitem/14854</link><description>While assigning a character value to a cell, EPPlus puts a value 0 to the cell.  The workaround we have opted for is to check for the type of the value and then convert character value to string and then store it in the cell.&lt;br /&gt;&lt;br /&gt;Is there any better way or known solution for this&amp;#63;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>punitganshani</author><pubDate>Mon, 13 May 2013 11:27:11 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Character values - issue [14854] 20130513112711A</guid></item><item><title>Commented Unassigned: Excel cannot open file because directory _rels is missing [14853]</title><link>http://epplus.codeplex.com/workitem/14853</link><description>When I make an excel-sheet with EPPlus, using a template, Excel 2010 cannot open the file because of corrupted data.&lt;br /&gt;I made the same sheet in Excel and compared it to the sheet generated by EPPlus &amp;#40;after unzipping&amp;#41;. The main difference I found was that the directory _rels was missing on the root &amp;#40;next to xl, docProps and &amp;#91;ContentType&amp;#93;.xml, not the one in the xl directory&amp;#41;. When I add the directory with the file &amp;#39;.rels&amp;#39; and zip it again, the file opens nicely in Excel&lt;br /&gt;Comments: I have tested generating a excel sheet without using a template, this works.</description><author>amfasis</author><pubDate>Tue, 07 May 2013 12:12:24 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Excel cannot open file because directory _rels is missing [14853] 20130507121224P</guid></item><item><title>Created Unassigned: Excel cannot open file because directory _rels is missing [14853]</title><link>http://epplus.codeplex.com/workitem/14853</link><description>When I make an excel-sheet with EPPlus, using a template, Excel 2010 cannot open the file because of corrupted data.&lt;br /&gt;I made the same sheet in Excel and compared it to the sheet generated by EPPlus &amp;#40;after unzipping&amp;#41;. The main difference I found was that the directory _rels was missing on the root &amp;#40;next to xl, docProps and &amp;#91;ContentType&amp;#93;.xml, not the one in the xl directory&amp;#41;. When I add the directory with the file &amp;#39;.rels&amp;#39; and zip it again, the file opens nicely in Excel&lt;br /&gt;</description><author>amfasis</author><pubDate>Tue, 07 May 2013 11:35:45 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Excel cannot open file because directory _rels is missing [14853] 20130507113545A</guid></item><item><title>Commented Issue: Problem with ExcelRange.Style.Fill.BackgroundColor.Rgb [14746]</title><link>http://epplus.codeplex.com/workitem/14746</link><description>The ExcelRange.Style.Fill.BackgroundColor.Rgb seams to not be filled correctly for each cells when reading it.&lt;br /&gt;&lt;br /&gt;My program evaluate each cells and i use the background color of a cell to know if the current list of data is terminated.  I can have more that one list on a worksheet and more than one worksheet.&lt;br /&gt;&lt;br /&gt;So, my problem is that i have a list of data &amp;#40;each cell of that list have a background color&amp;#41; and when i try to read the second line of that list, the cell value of ExcelRange.Style.Fill.BackgroundColor.Rgb is equal to &amp;#34;&amp;#34;.&lt;br /&gt;&lt;br /&gt;It seams that this is working correctly on the first worksheet, but not on the second one.&lt;br /&gt;&lt;br /&gt;Is it possible to help me to find an answer on that issue&amp;#63;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Comments: I&amp;#39;m having the same issue. Regardless of the background color the cell in the workbook, the Rgb value is always an empty string. The Tint and Indexed values return values but these are always the same regardless of the background color of the cell.</description><author>mparter</author><pubDate>Tue, 07 May 2013 10:20:31 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem with ExcelRange.Style.Fill.BackgroundColor.Rgb [14746] 20130507102031A</guid></item><item><title>Commented Unassigned: Error Save when [state="veryHidden" r:id=""] is in workbook.xml [14852]</title><link>http://epplus.codeplex.com/workitem/14852</link><description>Hello, I found a issue that an exception would be thrown out when save a Excel if there is __state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34;__ in workbook.xml. Because __r&amp;#58;id__ is empty.&lt;br /&gt;&lt;br /&gt;here is the workbook.xml&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#60;&amp;#63;xml version&amp;#61;&amp;#34;1.0&amp;#34; encoding&amp;#61;&amp;#34;UTF-8&amp;#34; standalone&amp;#61;&amp;#34;yes&amp;#34;&amp;#63;&amp;#62;&lt;br /&gt;&amp;#60;workbook xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.openxmlformats.org&amp;#47;spreadsheetml&amp;#47;2006&amp;#47;main&amp;#34; xmlns&amp;#58;r&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.openxmlformats.org&amp;#47;officeDocument&amp;#47;2006&amp;#47;relationships&amp;#34;&amp;#62;&lt;br /&gt;  &amp;#60;fileVersion appName&amp;#61;&amp;#34;xl&amp;#34; lastEdited&amp;#61;&amp;#34;5&amp;#34; lowestEdited&amp;#61;&amp;#34;5&amp;#34; rupBuild&amp;#61;&amp;#34;9302&amp;#34; codeName&amp;#61;&amp;#34;&amp;#123;00000000-0000-0000-0000-000000000000&amp;#125;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;workbookPr codeName&amp;#61;&amp;#34;ThisWorkbook&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;bookViews&amp;#62;&lt;br /&gt;    &amp;#60;workbookView xWindow&amp;#61;&amp;#34;360&amp;#34; yWindow&amp;#61;&amp;#34;225&amp;#34; windowWidth&amp;#61;&amp;#34;12390&amp;#34; windowHeight&amp;#61;&amp;#34;7800&amp;#34; tabRatio&amp;#61;&amp;#34;784&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;bookViews&amp;#62;&lt;br /&gt;  &amp;#60;sheets&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;BPOP&amp;#34; sheetId&amp;#61;&amp;#34;1&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;rId1&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;Module_Main&amp;#34; sheetId&amp;#61;&amp;#34;2&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;  ---&amp;#62; HERE Throw Error..&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;Funds_Module&amp;#34; sheetId&amp;#61;&amp;#34;3&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;dlg_Options&amp;#34; sheetId&amp;#61;&amp;#34;4&amp;#34; state&amp;#61;&amp;#34;hidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;rId2&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;ModuleBPOP&amp;#34; sheetId&amp;#61;&amp;#34;5&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;sheets&amp;#62;&lt;br /&gt;  &amp;#60;functionGroups builtInGroupCount&amp;#61;&amp;#34;17&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;definedNames&amp;#62;&lt;br /&gt;    &amp;#60;definedName name&amp;#61;&amp;#34;Fund&amp;#34;&amp;#62;&amp;#39;BPOP&amp;#39;&amp;#33;&amp;#36;A&amp;#36;5&amp;#60;&amp;#47;definedName&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;definedNames&amp;#62;&lt;br /&gt;  &amp;#60;calcPr calcId&amp;#61;&amp;#34;144525&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;workbook&amp;#62;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Here is the stack&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;System.InvalidOperationException&amp;#58; Error saving file C&amp;#58;&amp;#92;TEMP&amp;#92;Test&amp;#92;TEST_signed.xlsm ---&amp;#62; System.ArgumentNullException&amp;#58; Value cannot be null.&lt;br /&gt;Parameter name&amp;#58; name&lt;br /&gt;   at System.Xml.XmlConvert.VerifyNCName&amp;#40;String name&amp;#41;&lt;br /&gt;   at MS.Internal.IO.Packaging.InternalRelationshipCollection.ThrowIfInvalidXsdId&amp;#40;String id&amp;#41;&lt;br /&gt;   at System.IO.Packaging.PackagePart.GetRelationshipHelper&amp;#40;String id&amp;#41;&lt;br /&gt;   at System.IO.Packaging.PackagePart.GetRelationship&amp;#40;String id&amp;#41;&lt;br /&gt;   at OfficeOpenXml.ExcelWorksheets..ctor&amp;#40;ExcelPackage pck, XmlNamespaceManagernsm, XmlNode topNode&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorksheets.cs&amp;#58;line 79&lt;br /&gt;   at OfficeOpenXml.ExcelWorkbook.get_Worksheets&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorkbook.cs&amp;#58;line 254&lt;br /&gt;   at OfficeOpenXml.ExcelWorkbook.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorkbook.cs&amp;#58;line 614&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 710&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 763&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.SaveAs&amp;#40;FileInfo file&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 786&lt;br /&gt;   at test.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;test&amp;#92;Program.cs&amp;#58;line 54&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;here is a temp fix&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;foreach &amp;#40;XmlNode sheetNode in topNode.ChildNodes&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;string name &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;name&amp;#34;&amp;#93;.Value&amp;#59;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;Get the relationship id&lt;br /&gt;&amp;#9;string relId &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;r&amp;#58;id&amp;#34;&amp;#93;.Value&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;temp fix by leon&lt;br /&gt;&amp;#9;if &amp;#40;String.IsNullOrEmpty&amp;#40;relId&amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;continue&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;int sheetID &amp;#61; Convert.ToInt32&amp;#40;sheetNode.Attributes&amp;#91;&amp;#34;sheetId&amp;#34;&amp;#93;.Value&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;Hidden property&lt;br /&gt;&amp;#9;eWorkSheetHidden hidden &amp;#61; eWorkSheetHidden.Visible&amp;#59;&lt;br /&gt;&amp;#9;XmlNode attr &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;state&amp;#34;&amp;#93;&amp;#59;&lt;br /&gt;&amp;#9;if &amp;#40;attr &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;hidden &amp;#61; TranslateHidden&amp;#40;attr.Value&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;PackageRelationship sheetRelation &amp;#61; pck.Workbook.Part.GetRelationship&amp;#40;relId&amp;#41;&amp;#59;  -------&amp;#62;here the exception threw because relId is empty.&lt;br /&gt;&amp;#9;Uri uriWorksheet &amp;#61; PackUriHelper.ResolvePartUri&amp;#40;pck.Workbook.WorkbookUri, sheetRelation.TargetUri&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;add the worksheet&lt;br /&gt;&amp;#9;_worksheets.Add&amp;#40;positionID, new ExcelWorksheet&amp;#40;_namespaceManager, _pck, relId, uriWorksheet, name, sheetID, positionID, hidden&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;positionID&amp;#43;&amp;#43;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Comments: I  am not allowed to upload the Excel file, but one thing I&amp;#39;d like to say is&amp;#58; Module_Main, Funds_Module and ModuleBPOP are all VBA Module names.</description><author>chenliang0571n</author><pubDate>Tue, 07 May 2013 06:47:44 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Error Save when [state="veryHidden" r:id=""] is in workbook.xml [14852] 20130507064744A</guid></item><item><title>Edited Unassigned: Error Save when [state="veryHidden" r:id=""] is in workbook.xml [14852]</title><link>http://epplus.codeplex.com/workitem/14852</link><description>Hello, I found a issue that an exception would be thrown out when save a Excel if there is __state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34;__ in workbook.xml. Because __r&amp;#58;id__ is empty.&lt;br /&gt;&lt;br /&gt;here is the workbook.xml&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#60;&amp;#63;xml version&amp;#61;&amp;#34;1.0&amp;#34; encoding&amp;#61;&amp;#34;UTF-8&amp;#34; standalone&amp;#61;&amp;#34;yes&amp;#34;&amp;#63;&amp;#62;&lt;br /&gt;&amp;#60;workbook xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.openxmlformats.org&amp;#47;spreadsheetml&amp;#47;2006&amp;#47;main&amp;#34; xmlns&amp;#58;r&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.openxmlformats.org&amp;#47;officeDocument&amp;#47;2006&amp;#47;relationships&amp;#34;&amp;#62;&lt;br /&gt;  &amp;#60;fileVersion appName&amp;#61;&amp;#34;xl&amp;#34; lastEdited&amp;#61;&amp;#34;5&amp;#34; lowestEdited&amp;#61;&amp;#34;5&amp;#34; rupBuild&amp;#61;&amp;#34;9302&amp;#34; codeName&amp;#61;&amp;#34;&amp;#123;00000000-0000-0000-0000-000000000000&amp;#125;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;workbookPr codeName&amp;#61;&amp;#34;ThisWorkbook&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;bookViews&amp;#62;&lt;br /&gt;    &amp;#60;workbookView xWindow&amp;#61;&amp;#34;360&amp;#34; yWindow&amp;#61;&amp;#34;225&amp;#34; windowWidth&amp;#61;&amp;#34;12390&amp;#34; windowHeight&amp;#61;&amp;#34;7800&amp;#34; tabRatio&amp;#61;&amp;#34;784&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;bookViews&amp;#62;&lt;br /&gt;  &amp;#60;sheets&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;BPOP&amp;#34; sheetId&amp;#61;&amp;#34;1&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;rId1&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;Module_Main&amp;#34; sheetId&amp;#61;&amp;#34;2&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;  ---&amp;#62; HERE Throw Error..&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;Funds_Module&amp;#34; sheetId&amp;#61;&amp;#34;3&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;dlg_Options&amp;#34; sheetId&amp;#61;&amp;#34;4&amp;#34; state&amp;#61;&amp;#34;hidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;rId2&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;sheet name&amp;#61;&amp;#34;ModuleBPOP&amp;#34; sheetId&amp;#61;&amp;#34;5&amp;#34; state&amp;#61;&amp;#34;veryHidden&amp;#34; r&amp;#58;id&amp;#61;&amp;#34;&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;sheets&amp;#62;&lt;br /&gt;  &amp;#60;functionGroups builtInGroupCount&amp;#61;&amp;#34;17&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;definedNames&amp;#62;&lt;br /&gt;    &amp;#60;definedName name&amp;#61;&amp;#34;Fund&amp;#34;&amp;#62;&amp;#39;BPOP&amp;#39;&amp;#33;&amp;#36;A&amp;#36;5&amp;#60;&amp;#47;definedName&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;definedNames&amp;#62;&lt;br /&gt;  &amp;#60;calcPr calcId&amp;#61;&amp;#34;144525&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;workbook&amp;#62;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Here is the stack&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;System.InvalidOperationException&amp;#58; Error saving file C&amp;#58;&amp;#92;TEMP&amp;#92;Test&amp;#92;TEST_signed.xlsm ---&amp;#62; System.ArgumentNullException&amp;#58; Value cannot be null.&lt;br /&gt;Parameter name&amp;#58; name&lt;br /&gt;   at System.Xml.XmlConvert.VerifyNCName&amp;#40;String name&amp;#41;&lt;br /&gt;   at MS.Internal.IO.Packaging.InternalRelationshipCollection.ThrowIfInvalidXsdId&amp;#40;String id&amp;#41;&lt;br /&gt;   at System.IO.Packaging.PackagePart.GetRelationshipHelper&amp;#40;String id&amp;#41;&lt;br /&gt;   at System.IO.Packaging.PackagePart.GetRelationship&amp;#40;String id&amp;#41;&lt;br /&gt;   at OfficeOpenXml.ExcelWorksheets..ctor&amp;#40;ExcelPackage pck, XmlNamespaceManagernsm, XmlNode topNode&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorksheets.cs&amp;#58;line 79&lt;br /&gt;   at OfficeOpenXml.ExcelWorkbook.get_Worksheets&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorkbook.cs&amp;#58;line 254&lt;br /&gt;   at OfficeOpenXml.ExcelWorkbook.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelWorkbook.cs&amp;#58;line 614&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 710&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.Save&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 763&lt;br /&gt;   at OfficeOpenXml.ExcelPackage.SaveAs&amp;#40;FileInfo file&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;EPPlus&amp;#92;ExcelPackage.cs&amp;#58;line 786&lt;br /&gt;   at test.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in C&amp;#58;&amp;#92;Proj&amp;#92;epplus_d09aa5eaced9&amp;#92;test&amp;#92;Program.cs&amp;#58;line 54&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;here is a temp fix&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;foreach &amp;#40;XmlNode sheetNode in topNode.ChildNodes&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;string name &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;name&amp;#34;&amp;#93;.Value&amp;#59;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;Get the relationship id&lt;br /&gt;&amp;#9;string relId &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;r&amp;#58;id&amp;#34;&amp;#93;.Value&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;temp fix by leon&lt;br /&gt;&amp;#9;if &amp;#40;String.IsNullOrEmpty&amp;#40;relId&amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;continue&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;int sheetID &amp;#61; Convert.ToInt32&amp;#40;sheetNode.Attributes&amp;#91;&amp;#34;sheetId&amp;#34;&amp;#93;.Value&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;Hidden property&lt;br /&gt;&amp;#9;eWorkSheetHidden hidden &amp;#61; eWorkSheetHidden.Visible&amp;#59;&lt;br /&gt;&amp;#9;XmlNode attr &amp;#61; sheetNode.Attributes&amp;#91;&amp;#34;state&amp;#34;&amp;#93;&amp;#59;&lt;br /&gt;&amp;#9;if &amp;#40;attr &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;hidden &amp;#61; TranslateHidden&amp;#40;attr.Value&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;PackageRelationship sheetRelation &amp;#61; pck.Workbook.Part.GetRelationship&amp;#40;relId&amp;#41;&amp;#59;  -------&amp;#62;here the exception threw because relId is empty.&lt;br /&gt;&amp;#9;Uri uriWorksheet &amp;#61; PackUriHelper.ResolvePartUri&amp;#40;pck.Workbook.WorkbookUri, sheetRelation.TargetUri&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#47;&amp;#47;add the worksheet&lt;br /&gt;&amp;#9;_worksheets.Add&amp;#40;positionID, new ExcelWorksheet&amp;#40;_namespaceManager, _pck, relId, uriWorksheet, name, sheetID, positionID, hidden&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;positionID&amp;#43;&amp;#43;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;</description><author>chenliang0571n</author><pubDate>Tue, 07 May 2013 03:19:04 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Error Save when [state="veryHidden" r:id=""] is in workbook.xml [14852] 20130507031904A</guid></item></channel></rss>