Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Comments

Multiple sheets and formula support added#22

Open
walkstudio wants to merge 1 commit intoelidickinson:masterfrom
walkstudio:master
Open

Multiple sheets and formula support added#22
walkstudio wants to merge 1 commit intoelidickinson:masterfrom
walkstudio:master

Conversation

@walkstudio
Copy link

Example of use:

$excel = new ExportDataExcel('browser');
$excel->filename = "test.xls";

$excel->title = "Foglio 1";

$data = array(
array(1,2,3,"=SUM(R[0]C[-3]:R[0]C[-1])"),
array("asdf","jkl","semi"),
array("1273623874628374634876","=asdf","10-10"),
array("2010-01-02 10:00AM","1/1/11","10-10"),
array("1234","12.34","-123."),
array("-12345678901234567890","0.0000000000123456789","-"),
);

$excel->initialize();
foreach($data as $row) {
$excel->addRow($row);
}

$excel->addSheet("Foglio 2");
foreach($data as $row) {
$excel->addRow($row);
}

$excel->finalize();

Example of use:

$excel = new ExportDataExcel('browser');
$excel->filename = "test.xls";

$excel->title = "Foglio 1";

$data = array(
	array(1,2,3,"=SUM(R[0]C[-3]:R[0]C[-1])"),
	array("asdf","jkl","semi"), 
	array("1273623874628374634876","=asdf","10-10"),
	array("2010-01-02 10:00AM","1/1/11","10-10"),
	array("1234","12.34","-123."),
	array("-12345678901234567890","0.0000000000123456789","-"),
);

$excel->initialize();
foreach($data as $row) {
	$excel->addRow($row);
}

$excel->addSheet("Foglio 2");
foreach($data as $row) {
    $excel->addRow($row);
}

$excel->finalize();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant