Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8796833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:42:45+00:00 2026-06-13T23:42:45+00:00

Version information: PHPExcel – 1.7.8 linux – Linux version 2.6.18-274.12.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2

  • 0

Version information:

PHPExcel – 1.7.8

linux – Linux version 2.6.18-274.12.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51))

PHP Version – 5.3.17

I have a sales reporting template that I use to create a weekly report. Everything works perfectly, except for the output file size.

The input template is only 249kb in size, and yet the output file ends up being over 4mb in size.

There are a total of 97 cells that have any data put added into them. When I insert the data manually, the size stays correct.

Original Template size – 254,464

Manual Entry Output size – 254,464

PHPExcel Output size – 4,230,656

I based my code off of the 30template.php example.

Any thoughts on what could be causing this is appreciated!

If any other information is needed I’ll respond with what I can.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:42:47+00:00Added an answer on June 13, 2026 at 11:42 pm

    If the worksheet contains the data that you expect, then you really shouldn’t worry about this. 4MB isn’t particularly large for a file.

    PHPExcel is not a file editor: it doesn’t simply add a few extra cells into the original file that might simply add a few bytes to the resultant size. It loads the file, converting its content to a PHPExcel object; you modify that PHPExcel object; and when you save, it writes a new file from the content of that PHPExcel object. Excel itself has a lot of different options for the way it stores the spreadsheet data, and the resources to optimise to store them extremely efficiently when it saves. PHPExcel stores in a generic manner, without the overhead of determining how best to optimise the resultant file to a minimal size. PHPExcel may, for example, save additional default styles that aren’t used in the workbook, whereas Excel itself may discard these. You don’t mention which format you’re using: .xlsx or .xls… the former is zip compressed; but the zip compression method used by ZipArchive may not match the compression method used by Excel.

    So there’s a whole host of factors that come into play that affect the size of a saved file: what’s generally more important is that the content is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Linux, is there a way to embed version information into an ELF binary?
What steps are needed to compile Version Information inside a windows DLL from the
Does anyone know how to add full (n.n.n.n) Windows file version information to COM
Is there any information available for the next version ( 2011 ) of Delphi
I am trying to get information on the version of Windows installed from WMI.
JIRA has built in version information, which looks quite handy. However, in an iterative
How can we get Browser Name and Version information using php script?
I want to retrieve the version information of msi-package(s) What's the better way? First
Is it possible to provide version information to go with an HTTP cookie? I
I've written a bit of code to add version information to Django models. I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.