Registry Mirror
Skip to content

Excel Export #12

Open
Open

Description

@georgegijo

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.

Activity

  1. koolphp commented on Jun 21, 2018

    @koolphp
    Owner

    Hi George,

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

    `class MyReport extends koolreport\KoolReport
    {

    use \koolreport\excel\ExcelExportable;
    

    ...`

  2. georgegijo commented on Jun 21, 2018

    @georgegijo
    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.

  3. dongnl commented on Jun 21, 2018

    @dongnl
    Collaborator

    Hi George,

    Did your browser auto save any file?

  4. georgegijo commented on Jun 21, 2018

    @georgegijo
    Author

    nothing is autosaved.

  5. dongnl commented on Jun 21, 2018

    @dongnl
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions