You need to sign in to do that
Don't have an account?
Ashw
application/vnd.ms-excel#contacts.xls but gridView lines are missing after download
<apex:page controller="wrapper3cls" contentType="text/xml"> <apex:form > <apex:pageblock > <apex:pageblocktable value="{!lstwrap}" var="awrap"> <apex:column headerValue="Contacts" > <apex:repeat value="{!awrap.lst}" var="c"> <apex:commandLink value="approve" rendered="{!if((awrap.acc.name=='GenePoint'),true,false)}" action="/apex/displaypage?id='+rId"/> <apex:param name="rId" value="{!c.Id}" assignTo="{!rId}"/> </apex:repeat> </apex:column> <apex:column value="{!awrap.acc.name}"/> <apex:column value="{!awrap.acc.phone}"/> <apex:column value="{!awrap.acc.fax}"/> </apex:pageblocktable> </apex:pageblock> </apex:form> </apex:page>
you can use
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
and set standardstylesheets="false" to get you desired output.
All Answers
your xls file is not missing gridlines.you are getting correct xls.
What you have to do is:
Click on the “View” tab in the top menu bar in msoffice or any other application that you are using.
Click on the checkbox next to “Gridlines” in the “Show/Hide” panel. Gridlines will now be enabled for every worksheet that you
Actually i did that but every time when the file is downloaded i need to go to view and click checkbox instead of that is there any way to get the grid view initally when the file is downloaded.
you can use
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
and set standardstylesheets="false" to get you desired output.
Where should i place the above mentioned code in my code
I tryed it but the problem didnt resolve, i placed <head>tag before & after <apex:form> tag
Apologies for directing you in a wrong way... :)