+ Start a Discussion

How to save the VISUAL FORCE CONTENTS in Excel file format inside salesforce?

I am trying to create a Custom visualforce page,the contents saved in the vf page is created as a Documents and i need the Documents to be saved in .xls file format i.e excel file.i want this to be implemented with apex code.Kindly look into this issue and give me reply as soon as possible.


HI, anitha


if i am not wrong then you want to convert your visual force page content into Excel format.. if you want such like that then set your visual force page contentType property. like


<apex:page controller="xxxx"  contentType="x1.xls" showHeader="false" sidebar="false" > ...... ..... ..... ... </apex:page>