function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PRepakaPRepaka 

how to generate a visual force page in word document?

hi
 
can u please tell me how to generate a visual force page in word document.
hisrinuhisrinu
Hi Padma,

 Right now we can generate VF Page either in excel or pdf formats only.


VisualForceVisualForce

Hi.. Srini...

       renderas="pdf" is used for generating PDF..

How can we generate excel..
hisrinuhisrinu
In the page tag, you can add the following content type then it will display in excel sheet.

contenttype="application/vnd.ms-excel"
TechiesTechies

Use content tyep as application/msword and the save the record name with an extension ".doc"..