Edit xls in PHPExcel

Source: Internet
Author: User
Tags php excel
PHPExcel edit xls PHPExcel PHP Excel

There is an xls template with all styles set and cell merging. Now the question is how to directly modify the content in PHPExcel while the style remains unchanged, thank you !!


Reply to discussion (solution)

Basic idea: First use phpexcel to read the excel template, then assign values, and then write files in phpexcel.

Suggestion:
1. read ecl as data and put the data into a from
2. after the modification, write the content of the previous ecl file again.

Basic idea: First use phpexcel to read the excel template, then assign values, and then write files in phpexcel.
What should we do when we merge cells in a style?

PHPExcel fully simulates vba's Excel control
We recommend that you take a look at the vba section in the Excel help.

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.