Skip to content

Unable to have Complex headers export to Excel and csv #764

@Rohit1310

Description

@Rohit1310

I have been trying to export the datatable using the Button extention of DT with a complex header for example as below:
extable

but I am getting only the last row in the header as below when exporting the datatable
extable1

I have searched alot but didn't got any satisfactory outcome.
I know this can be achieved using jquery but can you help me with some function in r.

Kindly help me to fix this issue.

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.name/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions