Comments (5)
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.
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.
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.
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.
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)
- Filename is not escaped and therefore is a potential problem HOT 1
- Improvements: Using a debugger to measure performance HOT 2
- htmlentities function doesn't work HOT 2
- Error in output excel file from format conflict HOT 2
- Nothing happens when launching the code inside test.php in another php page
- Worksheet::removeColumn() not handling the last row of the worksheet?
- DRY: PHP-Excel project HOT 1
- Excel 2007 can't open the output file HOT 3
- Suggestion HOT 1
- decode for the newline in the cell HOT 2
- PHP-excel can not export variable with value of 254 length HOT 1
- Freeze Rows Code HOT 1
- Patch for /trunk/php-excel.class.php
- file format does not match extension
- Save to file HOT 1
- Open xls file still loading...
- Does not support arabic character
- today timeline
- XML entities are not encoded HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-excel.