HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/topswtwmobile.komma.pro/vendor/maatwebsite/excel/docs/export/export.md
# Exporting

To download the created file, use `->export($ext)` or `->download($ext)`.

#### Export to Excel5 (xls)

    Excel::create('Filename', function($excel) {

    })->export('xls');

    // or
    ->download('xls');

#### Export to Excel2007 (xlsx)

    ->export('xlsx');

    // or
    ->download('xlsx');

#### Export to CSV

    ->export('csv');

    // or
    ->download('csv');

> You can set the default enclosure and delimiter inside the config

#### Export to PDF

To export files to pdf, you will have to include `"dompdf/dompdf": "~0.6.1"`, `"mpdf/mpdf": "~5.7.3"` or `"tecnick.com/tcpdf": "~6.0.0"` in your `composer.json` and change the `export.pdf.driver` config setting accordingly.

    ->export('pdf');