+ Start a Discussion
balraj singh 33balraj singh 33 

i want to download excel in same page but the code below opens a new window. Please suggest so that the download starts in the same page

<apex:page standardcontroller="quote" extensions="quotequery" contentType="application/vnd.ms-excel#SalesForceExport.xls" cache="true" >
    <apex:pageBlock title="Export Results" >
        <apex:pageBlockTable value="{!cs}" var="quote">
            <apex:column value="{!quote.ID}"/>
            <apex:column value="{!quote.Name}"/>
Raj VakatiRaj Vakati
I guess you are create this page as button on the quote and you are using in on the UI .. So chose the Window Open Properties on the button or link’s detail page.

User-added image