Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint Export a dynamic table built from a SharePoint list int Excel - getting an error

$
0
0

I have a requirement to build a report from a SharePoint list and display the list items in a dynamic table on a page and then have a button that would export the dynamic table into Excel. I am using the below function which works fine, however, I am getting the error :

Html to excel file generation gives error file format and extension don't match. How to correct

Although I am able to open the xls file, I would like to get rid of the error. Any idea?

This is the function I am using:

 $("#RptTable").table2excel({
  exclude: ".noExl",
  name: "Worksheet Name",
  filename: "StatusReport",
  fileext: ".xls",
  exclude_img: true,
  exclude_links: true,
  exclude_inputs: true
});
      

Thanks


faye fouladi


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>