<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/excelwriterxml/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/excelwriterxml/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 03 Jan 2013 14:57:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/excelwriterxml/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Floating points go wrong when using other locale than en_US</title><link>https://sourceforge.net/p/excelwriterxml/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When a project requires a different locale setting than en_US the floating points that are inserted into the sheet can be of the wrong format (i.e. 0,5 instead of the required 0.5).&lt;br /&gt;
This can be fixed in ExcelWriterXML_Sheet by changing the following lines: (the how and why of the fix is written in the comment)&lt;/p&gt;
&lt;p&gt;353             $data = $cell['data'];&lt;br /&gt;
354             $data = htmlspecialchars($data);&lt;/p&gt;
&lt;p&gt;To&lt;/p&gt;
&lt;p&gt;353             $data = $cell['data'];&lt;br /&gt;
354             if (is_float($data)) {&lt;br /&gt;
355             /* Use sprintf to prevent loss of decimal characters, since&lt;br /&gt;
356             * normal float -&amp;gt; string conversion does not always use&lt;br /&gt;
357             * the . as a decimal separator.  %F does not take into&lt;br /&gt;
358             * account locale (%f does). Since sprintf uses only a&lt;br /&gt;
359             * precision of up to 6 decimal places by default, we&lt;br /&gt;
360             * explicitely provide a precision. */&lt;br /&gt;
361                 $prec = ini_get('precision');&lt;br /&gt;
362                 $data = sprintf("%.${prec}F", $data);&lt;br /&gt;
363             }&lt;br /&gt;
364             $data = htmlspecialchars($data);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 03 Jan 2013 14:57:05 -0000</pubDate><guid>https://sourceforge.net1b82e655d3e4d3616ff0eb3c04ccf4ccb3e627b3</guid></item><item><title>Warning about returning a reference of 'new'</title><link>https://sourceforge.net/p/excelwriterxml/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;PHP5.3.15 generates a warning when returning a reference to a new object. Lines 168 and 200 need to be changed to replace '=&amp;amp;' with '='&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 27 Jul 2012 15:50:03 -0000</pubDate><guid>https://sourceforge.net873924526276831d3738cb07dce98df8f8214ded</guid></item><item><title>NOT A BUG - OpenOffice issue</title><link>https://sourceforge.net/p/excelwriterxml/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When using MergeAcross=0 tag in OpenOffice it uses the wrong index shifting cells right.&lt;br /&gt;
Attaching revised code to prevent this.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 13 Jun 2012 10:03:02 -0000</pubDate><guid>https://sourceforge.net917e8430a4f97a6597b1eb7633f1068e90f8a464</guid></item><item><title>function mysqlQueryToTable</title><link>https://sourceforge.net/p/excelwriterxml/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This function is incomplete in the version I downloaded.   It did not allow for the database to be passed in the function call.  The operational version (at least for me) is below:&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Outputs a MYSQL table or list of tables to an Excel doc&lt;br /&gt;
* @param string $host MySQL host to connect to&lt;br /&gt;
* @param string $username Username to connect with&lt;br /&gt;
* @param string $password Password to connect with&lt;br /&gt;
* @param string $db Database to use&lt;br /&gt;
* @param mixed $table If string, out specific table.  If array, each table will have it's own sheet&lt;br /&gt;
*/&lt;br /&gt;
public function mysqlQueryToTable($host,$username,$password,$query,$db){&lt;br /&gt;
EWXcheckDriverDB('mysql');&lt;br /&gt;
if (empty($host))       $this-&amp;gt;addError('Database','HOSTNAME is empty');&lt;br /&gt;
if (empty($username))   $this-&amp;gt;addError('Database','USERNAME is empty');&lt;br /&gt;
if (count($this-&amp;gt;formatErrors) &amp;gt; 0){return false;}&lt;/p&gt;
&lt;p&gt;$link = mysql_connect($host,$username,$password);&lt;br /&gt;
if (!$link) $this-&amp;gt;addError('Database','UNABLE to connect to '.$host.'('.mysql_error().')');&lt;br /&gt;
if (count($this-&amp;gt;formatErrors) &amp;gt; 0){return false;}&lt;/p&gt;
&lt;p&gt;$db_selected = mysql_select_db($db, $link);&lt;/p&gt;
&lt;p&gt;EWXmysqlGenerateByQuery($this,$link,$query);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 23 Feb 2012 18:50:41 -0000</pubDate><guid>https://sourceforge.net57fc5a70d73c80394dfb0658dab304d664a88dd9</guid></item><item><title>Sheet name max length is not tested</title><link>https://sourceforge.net/p/excelwriterxml/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The sheet name attribute must not contain more than 32 characters.&lt;br /&gt;
This is not tested in function addSheet function of ExcelWriterXML class.&lt;/p&gt;
&lt;p&gt;In attach you will find a diff that adds a test and cuts off the characters that are too much.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 20 Dec 2011 11:47:33 -0000</pubDate><guid>https://sourceforge.neta6036e58e067ebb29f37528fd56ccebdf40f5c1f</guid></item><item><title>file cannot load on Excel Mac 2004 / X / 2011</title><link>https://sourceforge.net/p/excelwriterxml/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On Mac OS X the generated XML files cannot be opened by Excel. Excel comes up with an error message and generates a error log. That says (in german):&lt;br /&gt;
[code]XML-FEHLER in ExcelWorkbook-Beschreibung&lt;br /&gt;
GRUND:  Ungültiger Wert&lt;br /&gt;
DATEI:  Bildmengenauswertung.xml&lt;br /&gt;
GRUPPE: Row&lt;br /&gt;
TAG:    Cell&lt;br /&gt;
ATTRIBUT:   Index&lt;br /&gt;
WERT:   0[/code]&lt;/p&gt;
&lt;p&gt;It means that in tag [code]cell[/code] the attribute [code]Index[/code] must not have the value [code]0[/code].&lt;/p&gt;
&lt;p&gt;To get the generated files loaded I'am adding + 1 on the column variable which is used as the value in the [code]ss:Index[/code] attribute of the cell. (ExcelWriterXML_Sheet.php:333)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 27 Jan 2011 07:43:10 -0000</pubDate><guid>https://sourceforge.net80237500c2291daa347cb899904fb4b3a643e0a6</guid></item><item><title>Passing values by reference has been deprecated</title><link>https://sourceforge.net/p/excelwriterxml/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In order to update the library to use a more recent version of php, in ExcelWriterXML.php, &lt;/p&gt;
&lt;p&gt;Change line 168:&lt;br /&gt;
FROM&lt;br /&gt;
$style =&amp;amp; new ExcelWriterXML_Style($id);&lt;/p&gt;
&lt;p&gt;TO:&lt;br /&gt;
unset($style);&lt;br /&gt;
$style = new ExcelWriterXML_Style($id);&lt;/p&gt;
&lt;p&gt;Change line 200&lt;br /&gt;
FROM&lt;br /&gt;
$sheet =&amp;amp; new ExcelWriterXML_Sheet($id);&lt;br /&gt;
TO:&lt;br /&gt;
unset($sheet);&lt;br /&gt;
$sheet = new ExcelWriterXML_Sheet($id);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 08 Nov 2010 00:03:12 -0000</pubDate><guid>https://sourceforge.net0bea8d0f7c8caff7408b38b9b413fc990001b2b9</guid></item><item><title>documentation error</title><link>https://sourceforge.net/p/excelwriterxml/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe I'm wrong, but in the documentation it states:&lt;/p&gt;
&lt;p&gt;ExcelWriterXML::overwriteFile&lt;br /&gt;
overwriteFile( [boolean $overwrite = true] ); &lt;/p&gt;
&lt;p&gt;I read here that it is default true,&lt;br /&gt;
but this value is default false.&lt;/p&gt;
&lt;p&gt;just to let you know.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 27 May 2008 15:47:03 -0000</pubDate><guid>https://sourceforge.netca53008e18c26f63478c8333a03722165bc4a9ca</guid></item></channel></rss>