From 459b1666e91ea8129d6f5e9b723d44af95c3cd08 Mon Sep 17 00:00:00 2001 From: Sergey Shuchkin Date: Fri, 10 Jun 2022 12:07:39 +0600 Subject: [PATCH] 1.2.13 --- README.md | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ca4201..3866efc 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ $data = [ SimpleXLSXGen::fromArray( $data ) ->setDefaultFont( 'Courier New' ) ->setDefaultFontSize( 14 ) - ->setColWidth(1, 35) + ->setColWidth(1, 35) // 1 - num column, 35 - size in chars ->mergeCells('A20:B20') ->saveAs('styles_and_tags.xlsx'); ``` @@ -104,6 +104,54 @@ $xlsx->addSheet( $books2, 'Stephen King catalog'); $xlsx->downloadAs('books_2021.xlsx'); exit(); ``` +### JS array to Excel (AJAX) +```php +downloadAs('file.xlsx'); + return; +} +?> + + + JS array to Excel + + + + + + +``` ## Debug ```php