You need to sign in to do that
Don't have an account?
ruby96
Displaying a page in EXCEL - contenttype="application/vnd.ms-excel"
Hello,
I am having difficulties attempting to run the Microsoft Excel ContentType example on page 43 of the Visualforce Developers Guide. Is there anything incorrect in the example as shown in the guide?
I am able to get satisfactory results using a few other contenttypes, such as (1) text/html, (2) text/plain, and (3) text/richtext, but Internet Explorer 7 cannot open or save the resulting file.
Has anyone any ideas to share about this? Oh, yeah, I'm a newbie...
Thanks in advance.
With Summer 08 release I am witnessing the same problem. It is working fine in Firefox, but not in IE 7. I was just wondering whether it was fixed or not.
Your response is greatly appreciated.
Message Edited by dchasman on 06-25-2008 02:59 PM
I tried to run the sample code given in the Visual Force Developer's guide in IE 7 and it didn't work for me. Is there anything i am missing here. I have used 'http' instead of 'https' as mentioned by Doug.
Any help on this is highly appreciated.
Thanx
S
As u have mentioned Displaying a page in EXCEL - contenttype="application/vnd.ms-excel" does not work in IE7. Is there any alternative way to achieve this. Iam ready to use SControl if we can not use VisualForce. Because my client uses IE7 only. Please help if you know the solution.
Thanks in advance :)
No need to use SControl. Plz try follwoing line. Its working in IE 7.
<apex:page cache="true" contentType="application/vnd.ms-excel#TempExcel.xls" controller="ExcelController" language="{!userLanguage}">
Plz do let me know, if this resolves your issue.
Thanx
S
** Resolved with Workaround **
What I had to do was redevelop my pages and create separate controllers between the pages. A bit of a hassle, but writing out the full URL in PageReference, using 'http' vs. 'https', and passing in all of my parameters in the URL did the trick. I'm not sure why this was working before in IE and then suddenly stopped, but my app is working again and ready to move on.
Message Edited by mcrosby on 11-11-2008 09:55 AM
Building and returning an http:// page reference just makes IE open a new browser and prompt for a salesforce login.
I'd love to just tell the customer to avoid IE7, but they don't see that as an option.
Thanks,
Message Edited by Ron Wild on 12-02-2008 01:06 PM
Thanks a bunch... this resolved the issue.
CAn you post your code how you resolved IE issue??