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
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}"/>
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>
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