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
Sree SalesforceSree Salesforce 

by using renderas attribute can we convert vf page to (pdf,csv and word).is it possible

Best Answer chosen by Sree Salesforce
sunny522sunny522
Hi Sri Manne,
    we use renderas attribute to generate pdf file where as contentType="application/vnd.msword" to generate ms-word file and  contentType="application/vnd.ms-excel" to generate excel file.

Go through the below url.You can see examples of creating pdf,word and excel files

http://salesforceglobe4u.blogspot.in/2014/01/generation-of-pdfword-and-excel-files.html

All Answers

Ashish_SFDCAshish_SFDC
Hi Sri, 


It is only possible to create a PDF and we do not have the other options yet. 


Regards,
Ashish
vamshi(Nani)vamshi(Nani)

Yes Ashish.. Currently the salesforce supporting reneder as PDF only, even in there is some restrictions.

 

Ashish_SFDCAshish_SFDC
Hi , 


Some more related links below,

Idea: https://success.salesforce.com/ideaView?id=08730000000K0If

Blog: How to Create Word, PDF or Excel Files with Salesforce Data

http://salesforcesource.blogspot.sg/2009/04/how-to-create-word-pdf-or-excel-files.html

Similar Thread, 

What is the value of "renderas" attribute to display o/p in the form of Excel Sheet?

<apex:page contentType="application/vnd.ms-excel#report.xls" >

https://success.salesforce.com/answers?id=90630000000hMy4AAE


Regards,
Ashish


sam sammsam samm
You can convert page to pdf like this:

<apex:page  renderas="pdf">
sunny522sunny522
Hi Sri Manne,
    we use renderas attribute to generate pdf file where as contentType="application/vnd.msword" to generate ms-word file and  contentType="application/vnd.ms-excel" to generate excel file.

Go through the below url.You can see examples of creating pdf,word and excel files

http://salesforceglobe4u.blogspot.in/2014/01/generation-of-pdfword-and-excel-files.html

This was selected as the best answer
beco fuanbeco fuan
For converting vf page to pdf and Word. I think you can save vf page as JPEG, then use JPEG to PDF converter: 1 (http://www.rasteredge.com/software/jpeg-pdf-converter/)
And PDF to Word converter: 2 (http://www.rasteredge.com/how-to/vb-net-imaging/pdf-convert-word/)
alexan derhicksalexan derhicks
Stunning Wondershare PDF to Word Converter is a good way to extract text from a static and non-editable document for further usage.You just need to add the file which you intend to convert into the program and click Convert.It will retain all graphics, fonts and formatting. It supports all versions of MS Word so that you will not have any troubles editing the converted file.

See full info:- http://www.mannatsoftware.com/wondershare-pdf-to-word-converter.html

 
deep pal 2deep pal 2
Stillbon PDF to Word Converter best solution to convert PDF to .doc or .docx Word document file. It provides batch and partial conversion mode to efficiently convert unlimited or selected pdf files to word docs at a time. It has brilliant and easy to use user-friendly interface to make this software fast and simple. With this software, you can easily convert PDF files to Microsoft Word documents with the original text, images, layouts, hyperlinks, tables, and graphics exactly preserved. 
Explore more here:- https://www.stillbonsoftware.com/pdf-to-word/