Saturday, 8 July 2017

How to export detail record in word document ?

Hi All,

We can do this using conga composer , in my earlier post I have explained this .

http://salesforceworld4u.blogspot.com/2013/08/generating-pdf-using-conga-composer.html

We will do in simple way/easier way. here we go

1. Create visaulforce page

<apex:page standardController="Case" contentType="application/msWord#msword.doc">
    <apex:detail />
 
</apex:page>

2. Create custom button. Content source might be execute java script or link.

/apex/GeneratingVFasWordDoc?id={!Case.Id}

1 comment:

Unknown said...

Very good. How could I export to Pdf and use the correct charset?

Thanks