Which Master has used Phpexcel, the exported file is "unreadable content" exception

Source: Internet
Author: User
Who used Phpexcel, the exported file is "unreadable content" error
Title, I tested, if the number of cells exported is less, about 150, there is no problem, everything is normal.
However, once the number of cells exported is greater than 150, the exported Excel file will not open, open when the error "found unreadable content"

Is there any limit to this, or how can i solve this problem?


------Solution--------------------
Although Excel does have a number of cell limits, it's not only 150 so small.
You should check to see if your program has errors in the execution of the relevant areas.

Of course, it may be that the memory you have available is too small.
In the case of no increase in available memory, you can also use file caching as a way to mitigate this contradiction
------Solution--------------------
It may be a problem with your program.
1:lz can go to StackOverflow or Phpexcel official website post
2:lz can put code to let the owner give you guidance
------Solution--------------------
for ($i =0; $i <1215; $i + +) {
$objActSheet->setcellvaluebycolumnandrow (0, $i +1, ' OK ');
}

------Solution--------------------
Use Ini_set to raise the available memory of PHP.
I have no problem with exporting 10多万条 data.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.