+ Start a Discussion
s_foos_foo 

Excel in apex pages erroring in Internet Explorer.

Hi,
 
I have a apex page which has a link to excel page. when i click that it says "Could not Open http://store1/apex/excelview?startDate=7/22/2007&currencyType=EUR". 
The same page is opening in Firefox though.
 
<apex:page cache="false" contentType="application/vnd.ms-excel" controller="StoreController" language="{!userLanguage}">
 
Thanx
 
S
Ron HessRon Hess
you may have to configure your browser to open excel in place, the browser will need to know how to draw excel files within it's frame, i think the default is to save the file to the disk.
ostateostate
I met the same problem.
While Firefox and Opera could retrieve with no problem, IE(7.0) couldn't.

URL is like the following

    https://c.na6.visual.force.com/apex/sampleexcel?core.apexpages.devmode.url=1

If anyone solved this problem, please reply to this.

Thanks,
ostate

s_foos_foo

Hi,

Plz try giving the name of the excel sheet i.e.test in the following example. Also set the cache=true.

<apex:page cache="true" contentType="application/vnd.ms-excel#test.xls" controller="StoreController" language="english">

The above change resolve my issue.

Thanx

S
ostateostate
Hi, s_foo


Thanks a lot for your reply.
I could download my Excel output via IE by your correct.:smileywink:

Very Thanks,
ostate