You need to sign in to do that
Don't have an account?
How to generate excel file only for selected contact records?Urgent help needed....
Hi All,
I want generate excel file in Contact list while clicking Generate excel btn?this is only for selected contact records ?Can anyone help regaring in this scenario.I have done for all records as Excel file but I am not able to generate only selected record.
VF Page:
<apex:page standardController="Contact" contentType="application/" recordSetVar="Contacts" extensions="contactexcelgen" showHeader="false" >
<apex:form >
<apex:pageBlock >
<apex:pageblocktable value="{!record}" var="r" > <apex:column value="{!r.name}"/>
</apex:pageblocktable>
</apex:pageBlock>
</apex:form>
</apex:page>
THANKS,
Vicky
Hi Vicky,
Just put contentType="application/vnd.ms-excel#myfile.xls" to generate Excel file.
Hi ,
I got solution
Thanks,
Vicky
It is littile bit tricky. You can do it in such a way.
Hi,
Thanks for reply..
Pls can u post the Apex code urgent help....
Thanks,
Vicky