Excel Exporting Template
Using template to create excel report
customerName | productName | productLine | orderDay | orderMonth | orderYear | orderQuarter | dollar_sales |
---|---|---|---|---|---|---|---|
Vitachrome Inc. | 1937 Lincoln Berline | Vintage Cars | 10 | 1 | 2003 | Q1 | 3,726 |
Vitachrome Inc. | 1936 Mercedes-Benz 500K Special Roadster | Vintage Cars | 10 | 1 | 2003 | Q1 | 1,768 |
Baane Mini Imports | 1952 Alpine Renault 1300 | Classic Cars | 29 | 1 | 2003 | Q1 | 5,572 |
Baane Mini Imports | 1962 LanciaA Delta 16V | Classic Cars | 29 | 1 | 2003 | Q1 | 5,026 |
Baane Mini Imports | 1958 Setra Bus | Trucks and Buses | 29 | 1 | 2003 | Q1 | 3,284 |
customerName | {{all}} | Q1 | Q2 | Q3 | Q4 |
---|---|---|---|---|---|
Vitachrome Inc. | 72497.64 | 5494.78 | 22602.36 | 0 | 44400.5 |
Baane Mini Imports | 104224.79 | 50218.95 | 0 | 0 | 54005.84 |
Euro+ Shopping Channel | 820689.54 | 285274.59 | 249673.72 | 64949.38 | 220791.85 |
Danish Wholesale Imports | 129085.12 | 53959.21 | 54561.05 | 0 | 20564.86 |
Rovelli Gifts | 127529.69 | 52151.81 | 0 | 0 | 75377.88 |
productName | {{all}} | Q1 | Q2 | Q3 | Q4 |
---|---|---|---|---|---|
1937 Lincoln Berline | 102563.52 | 21151.12 | 21166.56 | 19598.65 | 40647.19 |
1936 Mercedes-Benz 500K Special Roadster | 46078.29 | 12146.66 | 8092.53 | 7590.47 | 18248.63 |
1952 Alpine Renault 1300 | 190017.96 | 43938.1 | 34943.71 | 33460.91 | 77675.24 |
1962 LanciaA Delta 16V | 123123.01 | 32472.36 | 22874.64 | 19918.52 | 47857.49 |
1958 Setra Bus | 119085.25 | 27629.37 | 23291.46 | 20586.1 | 47578.32 |
dollar_sales - sum |
2004
|
2005
|
Total
|
||||
Q3
|
Q4
|
Total
|
Q1
|
Total
|
|||
AV Stores, Co.
|
Classic Cars
|
|
34737.87
|
34737.87
|
|
|
34737.87
|
Ships
|
|
19186.06
|
19186.06
|
|
|
19186.06
|
|
Trains
|
|
7873.58
|
7873.58
|
|
|
7873.58
|
|
Vintage Cars
|
|
38186.89
|
38186.89
|
|
|
38186.89
|
|
Total
|
|
99984.4
|
99984.4
|
|
|
99984.4
|
|
Alpha Cognac
|
Ships
|
|
|
|
12432.32
|
12432.32
|
12432.32
|
Total
|
|
|
|
12432.32
|
12432.32
|
12432.32
|
|
Amica Models & Co.
|
Classic Cars
|
26424.11
|
|
26424.11
|
|
|
26424.11
|
Ships
|
6251.22
|
|
6251.22
|
|
|
6251.22
|
|
Trains
|
2018.72
|
|
2018.72
|
|
|
2018.72
|
|
Trucks and Buses
|
2352
|
|
2352
|
|
|
2352
|
|
Vintage Cars
|
45177.18
|
|
45177.18
|
|
|
45177.18
|
|
Total
|
82223.23
|
|
82223.23
|
|
|
82223.23
|
|
Anna's Decorations, Ltd
|
Classic Cars
|
|
|
|
18187.89
|
18187.89
|
18187.89
|
Trucks and Buses
|
|
|
|
27396.76
|
27396.76
|
27396.76
|
|
Vintage Cars
|
|
|
|
11347.65
|
11347.65
|
11347.65
|
|
Total
|
|
|
|
56932.3
|
56932.3
|
56932.3
|
|
Atelier graphique
|
Motorcycles
|
6066.78
|
|
6066.78
|
|
|
6066.78
|
Vintage Cars
|
|
1676.14
|
1676.14
|
|
|
1676.14
|
|
Total
|
6066.78
|
1676.14
|
7742.92
|
|
|
7742.92
|
|
Total
|
88290.01
|
101660.54
|
189950.55
|
69364.62
|
69364.62
|
259315.17
|
|
Description
Excel package of KoolReport is able to export data from database or any other kinds of datasoure to excel file. Only that, it is able to create charts and graphs in excel files.
This example demonstrates how to use PHP template file to dynamically customize exported excel files. The template using familiar html and widgets that allows you to create excel file easily.