You need to sign in to do that
Don't have an account?
visualforce page to csv file with meta content and script code
Hi all,
i create a csv file using visualforce page, i got a csv file with some meta data and script code in csv file. how to get only with vfpage data in csv file
my page:
<apex:page controller="AmbassadorNordic" sidebar="false" cache="true"
showHeader="false" contentType="{!if($CurrentPage.parameters.type !=null,
'text/csv#filename.csv',null)}">
<apex:form >
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
</head>
<apex:pageBlock >
<apex:commandButton value="accounts" action="{!account}"/>
<apex:outputText value="{!input}" escape="false"/>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks
gopikrishna