function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi Kondareddy ,
Please Find The Solution. What is the value of "renderas" attribute to display o/p in the form of Excel Sheet?
If you want to display your data to excel form then you can use Content Type Like This
<apex:page contentType="application/vnd.ms-excel#SalesForceExport.xls" cache="true"> <html> <head> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <h2>HTML Table</h2> <table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> <tr> <td>Ernst Handel</td> <td>Roland Mendel</td> <td>Austria</td> </tr> <tr> <td>Island Trading</td> <td>Helen Bennett</td> <td>UK</td> </tr> <tr> <td>Laughing Bacchus Winecellars</td> <td>Yoshi Tannamuri</td> <td>Canada</td> </tr> <tr> <td>Magazzini Alimentari Riuniti</td> <td>Giovanni Rovelli</td> <td>Italy</td> </tr> </table> </body> </html> </apex:page>
Please Let Me Know It Is Working Or Not??. If this will help you Please Mark Best Answer so that other people would take reference from it.
Thanks
Hi Kondareddy ,
Please Find The Solution. What is the value of "renderas" attribute to display o/p in the form of Excel Sheet?
If you want to display your data to excel form then you can use Content Type Like This
Please Let Me Know It Is Working Or Not??. If this will help you Please Mark Best Answer so that other people would take reference from it.
Thanks