PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 5, 2022

[FIXED] How to set PHPExcel_Cell_DataType::TYPE_STRING in krajee yii2-export

 October 05, 2022     excel, export-to-excel, php, phpexcel, yii2     No comments   

Issue

I meet a problem - when I export excel by Krajee yii2-export it will change long number to scientific notation in which lost last two bits. For example 201210171530 will be 2.012E+12, when I click it, 2.012E+12 will display as 201210171500. The last two bit '30' is lost,because '30' change to be '00'

How can I fix it? Or where can I set the cell datatype?
enter image description here


Solution

I solved the problem in a way. I add prefixion '. any good method? enter image description here



Answered By - bravility
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing