AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.23k stars 782 forks source link

Export with current style? (cvs/pdf) #1375

Closed rkdmen closed 7 years ago

rkdmen commented 7 years ago

Hey Allen,

I want to export with current css style applied to it. Right now, it exports just as text without any styling at all. Is it possible to keep certain format? (font color/background color)?

Also, is there anyway to export as pdf as well? Thanks

AllenFang commented 7 years ago

@rkdmen, we don't support this kind of feature, PR will be welcome, thanks

ntantri commented 7 years ago

Hi,

I was looking into this and checked some online resources. Here are the thought process.

Regards, Nagaraj

rkdmen commented 7 years ago

hello,

I actually had to create whole new code using exceljs on backend. I think that was only way to customize the style way I want. It was time consuming to apply all the styles but I think it's the only way.

ntantri commented 7 years ago

@rkdmen Yes, perhaps very true. There has to be another approach. @AllenFang Can go ahead and close this, as the feature to be requested would be to export as xlsx and not csv with color.

AllenFang commented 7 years ago

@tan31989 @rkdmen thanks you guys sharing 👍