Reposted from: summary of the history of a difficult ASP. NET Excel file generation by Xuan soul's blog
The last task of the statistics system is to export data to Excel. as it was the first time, I learned and made a great deal of effort. After that, I made a summary.
The development environment is as follows:
Operating System: Windows 7
Development Tool: vs201
Cause one, open software version is too low
WORKAROUND: If you use Microsoft Office software to open an Excel file and you find a problem that is not open or incompatible when the version is too low, then we need to upgrade Microsoft Office or download the appropriate Compa
interface, through which external PHP code calls PHPExcel;PHPExcel directoryThe specific operation code for reading and generating different documents (such as Excel, Excel2007, and PDF) is called by the PHPExcel. php file under the Classes directory in the factory mode.
Documentation directoryThe official PHPExcel help documentation, especiallyAPI directoryThe following web files are all PHPExcel API help
The Excel files in my colleagues' computers cannot be opened directly by double-clicking. You can only open the software and there is no table, however, you can find the specified file to open through "open" in the software.
Solution:
Op
Everyone knows that Excel2003 or previous versions of the saved table default format is generally "xls" suffix name, then "xlsx" suffix is what file it; What program is generated? In fact, xlsx file is also Excel generated file suffix, but is the Excel2007 or above version of the default
I remember that some students started to go to a drive letter early every morning after opening their computer, and then went to a folder to find a certain Excel file that must be used every day. The scenario can only be summarized in two words. So how can we open frequently used Excel files faster? Next I will share w
Excel table suddenly can not open is a lot of users will encounter problems, many users will choose to download a higher version of Office software or download kingsoft WPS Office software to replace, of course, there are users will choose to repair, on the Excel table can not open the solution is still more, today, Sm
component of EXCEL to the. NET component.
Open the Add reference dialog box in the project, select the com column, and find "Microsoft Excel 9.0 Object Library" (Office 2000) in the com list ), add it to the project references. Visual C #. Net automatically generates the corresponding. NET component file.
This conve
PrefacePreviously also used in C # to Excel, with OLE DB or offic COM components, but always very troublesome, relying on more restrictions, so decisively looking for open source solutions, Java above already have very mature poi, so, found the move. NET--npoi, so that you can not rely on anything, just use this library.IntroductionOpen Source protocol: Apache 2.0With Npoi, you can read and write Word/
boxes to complex objects such as pivot tables, graphs, and so on. Here's a brief description of the most important and the four most used objects.
(1) Application object. The Application object is at the top level of the Excel object hierarchy, representing the environment in which Excel itself runs.
(2) Workbook object. The workbook object is directly below the Application object, representing an
"Export the data in the gridview displayed on the page to an Excel table" encountered the following error: C # The format of the Excel file to be exported is different from the format specified by the extension. Details
Solution: Here we use "modify registry method" to solve this problem, which does not solve the problem from the root:
1.
Using the Excel component of MS Office to generate Excel has many drawbacks.The first step is that the process is difficult to deploy. The second step is that all of excel.exe will be loaded into the memory every time it is generated, occupying at least 10 MB of memory. If a large file is generated, it will take at least 100-500 mb, not every server may suffer su
Documentation. It also supports the generation of PDF, HTML, and CSV documents. Phpexcel also supports filling data with existing Excel documents as templates to generate the above documents. In addition, its API documentation and demo are quite complete and very helpful for developers.
The official phpexcel website is as follows:
Http://phpexcel.codeplex.com/
The current version is 1.7.6. The downloaded and decompressed phpexcel directory
the password to protect the file.
Writerespassword
File write protection password. If a password is specified when the file is saved, but the password is not provided when the file is opened, the file is read-only.
Readonlyrecommended
IfTrue, A
Use the Jxcell component to perform the functions of encrypting and decrypting Excel. Jxcell.jar "Click to download" (This jar has no use limit, you know)The specific code is as follows:Importjava.io.IOException;Importcom.jxcell.CellException;ImportCom.jxcell.View;/*** Excel encryption, decryption code * *@authorLifq * @date 2015-3-13 pm 02:13:24*/ Public classEncryptdecryptutil {/*** Read
If you need to specify how to open a folder, you can set up an Excel application in the Excel table. And often it needs to be done by modifying the registry or by using a macro command. Now we're going to use the Modify registry to Excezhong specify open folder. We can specify the folder in which to
Because of the advantages of different versions of Excel, many users will install multiple versions of the Excel program on the computer, so that when there is an unexpected situation, choose to use the most frequently used version of the set priority to open, the main methods are the following two kinds:
Method One, on the desktop select the "Start → run" comma
1, the left mouse button Double click the computer Desktop Excel2013 The worksheet program icon, opens it to run. In the Open Excel2013 Sheet Program window, click the Open another workbook option in the left pane. As shown in the picture;
2, in the jump to the open page, click the "Computer"--> "browse" option command. As shown in the picture;
3. T
In our daily work, many netizens will encounter Excel table can not open the problem, then, Excel table can't open how to do? Small part of the proposal is: You can first repair the Excel table, then, how to repair Excel table? To
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.