Today, I learned how to use Microsoft's OLE technology and use the ABAP program to import and export Excel files.
(1) commonly used Ole functions:
Call method, call object, free object, get property, set property.
Set property: Set property of
Get property: Get property of
Call method: Call method of
The output can be multiple parameters.
Release object: Free object
(2) reading files from
Introduction
The project often uses the function of importing data into Excel to import data in Excel to the database. You have also searched for related content and summarized the previously used solutions.
Solution 1
NPOI
NPOI is the. NET version of the POI project. POI is an open-source Java project for reading and writing Microsoft OLE2 component documents su
ThinkPHP uses PHPExcel to import and export complete Excel data, thinkphpphpexcel. ThinkPHP uses PHPExcel to import and export complete Excel data. the example described in this article is used in the development framework of Thinkphp, if you use ThinkPHP in other frameworks and use PHPExcel to
Many people in the development of the report will encounter the same multiple forms of Excel imported into the template, and then submitted to the database. However, the problem is that online import does not support selecting multiple excel at once, you can select only one excel at a time, and you cannot
the Code as follows:
Imports system. runtime. interopservices. MarshalImports OfficePrivate sub page_load (byval sender as system. Object, byval e as system. eventargs) handles mybase. Load'Use com to process ExcelDim oexcel as new excel. ApplicationDim obooks as Excel. workbooks, obook as Excel. WorkbookDim osheets as
. jet. oledb.4.0 and Excel 5.0 are replaced with Microsoft. ace. oledb.12.0 and Excel 12.0 Replace the table name with the table name of excel2003, so that only one row can be exported, and an exception occurs. This problem remains to be resolved.
USE insert into OpenDataSource ('Microsoft. Jet. oledb.4.0 ',
'Data source = D: \ export.xls; extended properties = Ex
There are two ways to import data from a text file by using Microsoft Office Excel: You can open a text file in Excel, or you can import a data range that is imported as an external data range (external data range: A worksheet from outside of Excel, such as a database or tex
Label:Several ways to import Excel data into a MySQL database "My Interview Sentiment" award essay contest results announced! The first few days need to import the Excel table data into the MySQL database, on-line search for half a day, study a half-day, summed up the following methods, the following and you share: One
Import and export of Excel data using Phpexcel (full step)Many articles have mentioned about the use of phpexcel to achieve the import and export of Excel data, most of the articles are similar, or is reproduced, there will be some problems, the following is my study of the use of Phpexcel to summarize the use of the m
First clean up the idea first, ~ ~
First: You need to upload the file to the server.
Then: Read the Excel data column display
Then: Let the user select the corresponding relationship of the field
Then: Submit the data, read the correspondence of the field
Last: Bulk import data, delete temporary files
Altogether is the above five steps! We step-by-Step analysis ~ ~ ~
The first step: Download the Phpexcelpar
Enterprise management software is difficult to avoid with Microsoft Excel, often the software is done, the customer asked to do an Excel import function. The ability to import Excel data is less difficult, from the values of Excel
Python handles Excel with XLWT,OPENPYXL, and XLWT only supports excel2003, which is up to 256 columns, while OPENPYXL supports excel2007 above and up to 65536 columns. Here are the two programs.XLWT forImport jsonimport xlwtdef Readfromjson (file): With open (file, ' R ', encoding= ' UTF8 ') as Fr:jsondata = Json.load ( FR) Return jsondatadef writetoexcel (file): JSON = Readfromjson (file)
This routine is used in the development framework of Thinkphp. if it is used in other frameworks, many people may be able to correctly import and export Excel, the problem is basically caused by an error in the reference path of the phpExcel core class. if there is a problem, you need to work hard. many articles have mentioned how to use phpExcel to import and ex
First, clean up the idea first, ~ ~
First: We need to upload the file to the server.
Then: Read Excel data columns to display
Then: Let the user select the corresponding relationship of the field
Then: Submit the data, read the corresponding relationship of the field
Last: Bulk import data, delete temporary files
Altogether is the above five steps! Let's step through the analysis ~ ~ ~
The first step: Downl
Import and append
The example SQL statement used in this article demonstrates the "Create Table" query. This query imports the Excel data into the newSQL Server table. As shown in the code example, when you continue to reference the source and target objects, you can use insertThe into... select... from syntax converts these statements into append queries.Use DTS
You can use the SQL Server Data Transmission
--From the Excel file, import the data into the SQL database, very simply, use the following statement directly:
/*===================================================================*/
--If the table that accepts the data import already exists
INSERT INTO table SELECT * FROM
OPENROWSET (' MICROSOFT. JET. oledb.4.0 '
, ' Excel
Excel|server
Basic ways to import/export Excel from SQL Server
/*=================== Import/Export Excel basic methods ===================*/
From the Excel file, import the data into
This article mainly introduces thinkphp using Phpexcel to achieve Excel data import and export, very practical features, the need for friends can refer to the followingThe example described in this article is used in the development framework of thinkphp, if used in other frameworks is the same method, many people may not correctly implement the import and export
This article mainly introduces thinkphp using Phpexcel to achieve Excel data import and export, very practical features, the need for friends can refer to the following
The example described in this article is used in the development framework of thinkphp, if used in other frameworks is the same method, many people may not correctly implement the import and expo
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.