Giter Site home page Giter Site logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
If the above doesn't work try this

foreach($line_arr as $col)
{
     $dtype = (is_numeric($col)) ? 'x:num':'';
     $line.="<td class=xl24 width=64 ".$dtype.">".$col."</td>";
}

Original comment by [email protected] on 7 Jul 2009 at 10:50

from php-excel.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Thanks for your input. There is a new branch available:

http://code.google.com/p/php-excel/source/browse/#svn/branches/version02

This version addresses your issue. In Germany we have the problem that the 
automagic
type identification may lead to the corruption of article numbers starting with 
a 0
(zero) or postcodes. This is why I set the types to String by default.

However, the new version will support the automatic identification of types, 
when you
set a certain parameter in the constructor:

$xls = new Excel_XML('UTF-8', true);

Using 'true' will activate the automatic conversion, so that numeric strings get
defined as Number in the XML.

Original comment by [email protected] on 10 Sep 2009 at 9:55

from php-excel.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
I will address this issue with a new version and/or a patch for version 1.

Original comment by [email protected] on 10 Sep 2009 at 12:27

  • Changed state: Accepted

from php-excel.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Thanks again for posting your fix. I've addressed this issue in the new version 
1.1,
which is available in the [http://code.google.com/p/php-excel/downloads/list 
download
section] of the project.

However, activating the auto-type identification remains optional since there 
are
cases where you do not want the library to autoconvert values (for example: 
german
postcodes starting with 0).

Original comment by [email protected] on 10 Sep 2009 at 2:20

  • Changed state: Fixed

from php-excel.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
i had the same issue,
just removing the white space(s) before or after the strings - Solved. :D

Original comment by [email protected] on 10 Nov 2012 at 7:25

from php-excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.