-1

I have table that get data from java code and show that data on web page . Can i export this data in excel format using javascript? What will be the code for that

Rahul
  • 11
  • 2
  • 5

1 Answers1

0

Javascript does not interact with file Object. it requires aciveX Object that only IE has available. you need to export it using different third party library like apache POI

Also you can anyhow use wkhtmltopdf that prints exactly same that will be available on HTML page into pdf

shreyansh jogi
  • 2,082
  • 12
  • 20