java - Dynamic Data to Excel from a JSP page residing in multiple tables under multiple div -


i have jsp page containing multiple div's , multiple tables in multiple div's . using ajax call render data tables i.e. data in tables rendered dynamically . have export div tables excel file , unable that. sample code jsp page renders data :

<script> ajax method load data  </script>      <div class="xyz">             <div class="abc">                 <div class="userinfo">                     </br><h2>user info</h2></br>                          <table class="table-class">                             <tr>                                 <td class="label" style='width: 25px'>venue</td>                                 <td class="data"><label id="comptvl_itenary_venue"></label></td>                             </tr>                     </table>                 </div>             </div>         </div> 

... more div here more tables in same format above. have have export multiple div resided table data excel file . have used application/vnd.ms-excel content type generates excel when table data static , not contain css , otherwise copy whole table code in excel report. have tried java script function reference

http://jsfiddle.net/anilawadh/cczqn/4/ 

but generates excel when table not contain css . please guide me how can export dynamic data generated in table containing css excel.

thanks in advance

rather trying export data html, export data when load (from ajax call). if have "export excel" button (or whatever) can reference pre-saved excel.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -