Skip to content

Excel Export #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
georgegijo opened this issue Jun 21, 2018 · 5 comments
Open

Excel Export #12

georgegijo opened this issue Jun 21, 2018 · 5 comments

Comments

@georgegijo
Copy link

Downloaded the excel package and put it to the Packages folder. But an error is generated Call to undefined method SponsorReportData::exportToExcel(). Can you please let me know what could be the problem? Thanks.

@koolphp
Copy link
Owner

koolphp commented Jun 21, 2018

Hi George,

To use the function exportToExcel, please use the ExcelExportable trait like this:

`class MyReport extends koolreport\KoolReport
{

use \koolreport\excel\ExcelExportable;

...`

@georgegijo
Copy link
Author

Thanks for the help. That resolved the issue. Can you please tell me how can I download the excel file. when I use $report->run()->exportToExcel()->toBrowser("myreport.xlsx"); it is downloading not the excel file but the same html page I am in.

@georgegijo georgegijo reopened this Jun 21, 2018
@dongnl
Copy link
Collaborator

dongnl commented Jun 21, 2018

Hi George,

Did your browser auto save any file?

@georgegijo
Copy link
Author

nothing is autosaved.

@dongnl
Copy link
Collaborator

dongnl commented Jun 21, 2018

Hi George,

It seems there's problem with exporting your data. I suggest you going to koolreport website, client section to open a ticket and send us your php code as well as sample data for our support team to check on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants