1
I have a view that has a whole table structure, by typing the view path in the navigation bar I opened the table. I would like to create a button that downloads this table and saves as . xls Can anyone help me? I already searched and only found downloading if I created the table in other ways and not the table already created in html. Thank you. Abs,
<table>
<tbody><tr height="20" style="height:15.0pt" bgcolor="#F0F8FF ">
<td bgcolor="#ffffff"> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="gray"> <b>Tópico </b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#d3d3d3"><b> Keyword </b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#d3d3d3"><b> Total de Postagens </b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#d3d3d3"><b> Alcance Total</b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#9be29b"><b> Positivas</b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#FFFACD"><b> Neutras </b> </td>
<td align="center" class="xl68" style="border-left:none" bgcolor="#ff9999"><b> Negativas </b> </td>
<td align="center" class="xl68" style="border-left:none"> <b> Twitter </b> </td>
<td align="center" class="xl68" style="border-left:none"> <b> Facebook </b> </td>
<td align="center" class="xl68" style="border-left:none"> <b> Instagram </b> </td>
<td align="center" class="xl68" style="border-left:none"> <b> Youtube </b> </td>
<td align="center" class="xl68" style="border-left:none"> <b> Outras </b> </td>
<td bgcolor="#ffffff"> </td>
</tr>
<tr height="20" style="height:15.0pt">
<td></td>
<td align="center" class="xl68" style="border-left:none">@topico.name</td>
<td align="center" class="xl68" style="border-left:none">@topico.name</td>
<td align="center" class="xl68" style="border-left:none">@posts.Count</td>
<td align="center" class="xl68" style="border-left:none">@reach</td>
<td align="center" class="xl68" style="border-left:none">@positivo</td>
<td align="center" class="xl68" style="border-left:none">@neutro</td>
<td align="center" class="xl68" style="border-left:none">@negativo</td>
<td align="center" class="xl68" style="border-left:none">@twitterCount</td>
<td align="center" class="xl68" style="border-left:none">@facebookCount</td>
<td align="center" class="xl68" style="border-left:none">@instagramCount</td>
<td align="center" class="xl68" style="border-left:none">@youtubeCount</td>
<td align="center" class="xl68" style="border-left:none">@outros</td>
<td> </td>
</tr>
</tbody>
</table>
The table has pagination?
– Laerte
At first you want to create a
crawler
, which will read the page’s HTML data, populate an . xls with the same?– Marciano.Andrade
can you put an excerpt of your code? would make it easier for staff to help with this
– Rodrigo Guiotti
Actually this html that I have in View is already a complete table, very simple, without CSS. If I click the other button on it I can save and put.xls and it opened in EXCEL.
– Arthur Keller
Rodrigo, it would be more or less like this here, with more lines. https://jsfiddle.net/52fLry0s/
– Arthur Keller