Generating Excel 97+ files with Python 2.4+ (need decorators), importing Excel 95+ files, support for UNICODE in Excel files, using variety of formatting features and printing options, Excel files and
... [More] OLE2 compound files dumper. No need in Windows/COM. [Less]
Hello Folks,
Raise your hands if you enjoy the power of "Zero Code" ? That's everyone. Thanks to ASP.NET 2.0. Most of the heavy lifting is done by the framework.
I would like to present to you a
... [More] new custom control that I developed. This control "Exports" the contents of your "GridView" into Excel format with "Zero Code". That's right. Simply drag and drop and you are all set.
Note:
Copyright (c) Rajesh Krishnamohan. All rights reserved.
This software is provided "AS IS", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. [Less]
BeanFiles is a java library for importing and exporting javabeans to/from various file formats. Right now, it only supports importing from csv using opencsv and xls using POI. Check out the
... [More] examples.
Beanfiles aims to facilitate type conversion and multiple input/output formats while reusing some of the underlying translation components.
The library currently supports importing only, but has some useful features. It supports the following:
No configuration (if column headers match bean property names) Property Mapping (if column headers do not match bean property names) Nested property resolutions (bean.childBean.property.whatever) Simple wildcard mappings (image* will build a list of strings where column header is imageXyz) Easily add custom translators (for instance a column is an id, and the bean property is a lookup) A nice use-case is creating beans with the beanfiles library, then using Hibernate to store objects to a relational model.
There's a Google group for discussing this project:
http://groups.google.com/group/beanfiles
Example UsageConsider the following csv file:
property1,property2,property3,property4,property5
line1_prop1,line1_prop2,line1_prop3,1,FALSE
line2_prop1,line2_prop2,line2_prop3,2,TRUEIn order to map this data to the following Java Bean:
public class SimpleBean {
private String property1;
private String property2;
private String property3;
private int property4;
private boolean property5;
public SimpleBean() {}
public String getProperty1() {
return property1;
}
public void setProperty1(String property1) {
this.property1 = property1;
}
...
}
Here's the Beanfiles code:
InputStream input = getInputStream("files/csv/simple_properties.csv");
ReaderIterator iterator = new CSVReaderIterator(SimpleBean.class, input);
input.close();
SimpleBean bean1 = iterator.next();
SimpleBean bean2 = iterator.next(); [Less]
Microsoft SQL Data Services(SDS) give us large flexibility and scalability in data hosting and handling,but different from ordinary RDBMS, consisted not in Table and Fields, but in Authority and
... [More] Entity. This toolkit helps developer or DBA to migrate existing data to SDS. [Less]
Tutorial requires 1 PHP file and 1 table of mySQL database.
export_excel.php 2. Database "tutorial" and table "name_list" with 2 fields: id(auto_increment), name(varchar, 50) and put some records
... [More] about 20 - 30 records into this table. (directly by phpMyAdmin)
// Connect database. mysql_connect("localhost","",""); mysql_select_db("tutorial");
// Get data records from table. $result=mysql_query("select from name_list order by id asc");
// Functions for export to excel. function xlsBOF() { echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); return; } function xlsEOF() { echo pack("ss", 0x0A, 0x00); return; } function xlsWriteNumber($Row, $Col, $Value) { echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); echo pack("d", $Value); return; } function xlsWriteLabel($Row, $Col, $Value ) { $L = strlen($Value); echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L); echo $Value; return; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download");; header("Content-Disposition: attachment;filename=orderlist.xls "); header("Content-Transfer-Encoding: binary ");
xlsBOF();
/ Make a top line on your excel sheet at line 1 (starting at 0). The first number is the row number and the second number is the column, both are start at '0' /
xlsWriteLabel(0,0,"List of car company.");
// Make column labels. (at line 3) xlsWriteLabel(2,0,"No."); xlsWriteLabel(2,1,"Company");
$xlsRow = 3;
// Put data records from mysql by while loop. while($row=mysql_fetch_array($result)){
xlsWriteNumber($xlsRow,0,$row['id']); xlsWriteLabel($xlsRow,1,$row['name']);
$xlsRow++; } xlsEOF(); exit(); ?> [Less]
XMLSpreadGear helps to generate Excel files using the collection of an object. Concept of transforming is based on the open excel specification. Using this utility one can export data from a
... [More] collection directly to excel file. Any project based on .net technology can use this. [Less]
A lightweight, simple and fast PHP Class which exports array data to Excel's .XLS format.
The array data could come from MySQL or any other data source, but as long as its in the normal PHP array
... [More] format, then this script will produce a simple xls out of it. [Less]