Home Backend Development PHP Tutorial PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file有关问题解决

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file有关问题解决

Jun 13, 2016 am 10:53 AM
exception xls

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决

[ 错误信息 ]

问题原因:


虽然该文件可能有一个xls扩展名,这是一个“假”的Excel文件。如果您在文本编辑器打开该文件你会发现它实际上是一个HTML文件。
我的原因是模版有错,我直接把Excel2007的后缀,xlsx改成xls,导致“伪”xls文件

解决办法:


使用Excel2007创建后,另存为2003的


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Causes and solutions to ConcurrentModificationException exceptions in Java Causes and solutions to ConcurrentModificationException exceptions in Java Jun 25, 2023 am 10:33 AM

In Java, when multiple threads operate a collection object at the same time, a ConcurrentModificationException exception may occur. This exception usually occurs when traversing the collection when modifying or deleting elements. This will cause the state of the collection to be inconsistent, thus throwing abnormal. This article will delve into the causes and solutions to this exception. 1. Causes of Exception Normally, ConcurrentModificationException exception

What is the difference between xls and xlsx What is the difference between xls and xlsx Jul 18, 2023 am 09:59 AM

The difference between xls and xlsx: 1. File structure, xls is an early binary file format of Excel, while xlsx uses an XML-based file structure to store data; 2. File size, xls files are larger, and xlsx is based on XML, so the file Smaller; 3. Compatibility, xlsx is more compatible with other programs and versions than xls; 4. Function, xls has some limitations in functionality, while xlsx provides more functions and flexibility; 5. Security, xls may have security risks, xlsx does not.

How to convert csv to xls in php How to convert csv to xls in php Mar 20, 2023 pm 03:35 PM

During the actual development process, we may need to convert data in CSV format into Excel format (XLS or XLSX). Because the CSV file is just a simple text file, and the Excel file supports more functions, such as data filtering, sorting, chart display, etc. PHP provides a powerful function library for processing CSV and Excel. The following will introduce how to use PHP to convert CSV files into Excel files.

Example analysis of using nmap-converter to convert nmap scan result XML into XLS Example analysis of using nmap-converter to convert nmap scan result XML into XLS May 17, 2023 pm 01:04 PM

Use nmap-converter to convert nmap scan result XML to XLS. Practical 1. Introduction As a network security practitioner, sometimes you need to use the port scanning tool nmap to perform large-volume port scanning, but the output results of Nmap are .nmap, .xml and .gnmap The three formats are mixed with a lot of unnecessary information, which is very inconvenient to process. The output results are converted into Excel tables to process the later output. Therefore, a technical expert shared a Python script to convert nmap reports to XLS. 2. nmap-converter1) Project address: https://github.com/mrschyte/nmap-

The difference between xls and xlsx The difference between xls and xlsx Jul 18, 2023 am 09:49 AM

The difference between xls and xlsx: 1. File structure, XLS files are stored in binary format, while XLSX files are based on the XML file format of the open document standard, and the data is stored in a hierarchical structure; 2. File size, since When stored in binary format, the file size is relatively large, while XLSX files use a more efficient compression algorithm, and the file size is usually much smaller than the XLS format; 3. Compatibility and interoperability; 4. Function and compatibility.

How to deal with UnsupportedEncodingException in Java? How to deal with UnsupportedEncodingException in Java? Jun 25, 2023 am 08:02 AM

How to deal with UnsupportedEncodingException in Java? In Java programming, you may encounter UnsupportedEncodingException. This exception is usually caused by incorrect encoding conversion or an unsupported encoding. In this article, we will introduce the causes of UnsupportedEncodingException exception and how to deal with it. What is UnsupportedE

Solution to PHP Fatal error: Uncaught exception 'PDOException' Solution to PHP Fatal error: Uncaught exception 'PDOException' Jun 23, 2023 pm 12:09 PM

In PHP development, you may encounter errors such as "PHPFatalerror:Uncaughtexception'PDOException'". This is an exception caused by an error when PHP operates the database. If this error is not handled in time, it will cause program interruption or unexpected errors. So how to solve this problem? Here are some common solutions. 1. Check the database parameters. First, we need to check the parameters passed when connecting to the database.

What does xls mean What does xls mean Apr 26, 2024 pm 01:03 PM

1. XLS is a common spreadsheet file format commonly used to store and process data. 2. It is one of the default file formats of Microsoft Excel and is also supported by many other spreadsheet software. 3. The xls file stores data in binary form and can contain multiple worksheets. Each worksheet can contain multiple cells. Each cell can store different types of data such as text, numbers, dates, etc. 4. Due to the popularity and ease of use of xls files, it is widely used in various fields, including business, science, education, etc.

See all articles