Now, for that "Stupid IE Trick"! *drum roll* .... There is a bug in Internet Explorer that causes the browser to fail on recognition of some HTTP headers, including Excel. But we are still looking for that "one-click pony", so how do we overcome this problem? Thanks to input from thelist a solution was gained through the use of a phantom link, a link that fools Internet Explorer about the content type of the information. The URL to the spreadsheet needs to be like this;
By linking this way the PHP will get processed properly and the phantom crosstab.xls will say to Internet Explorer that Excel type information is coming. I can recieve the file as a download just fine. but when i try to just view the file in a browser with out the d/l file the total returns as total score sum=1a2b so on.placeing the code above should fix this i think ,How and where does this code go on the page? Thanks in advance!.
Msg#: 12629 posted 11:16 am on May 1, 2006 (gmt 0)
Hi Beno Thanks for your help But the header line that this is in, has to be removed before it will display in my browser, other wise it wants to down load a file . I don't want to down load the file just display as a page. Ruffain
Msg#: 12629 posted 12:03 pm on May 3, 2006 (gmt 0)
Yes you are correct harke good eye. the start and end tag is correct in my code . But i had to look after your post. lol Thanks to all that have looked at my post but i still have the same problem.Please help i'm pulling me hair out... Ruffain
ruffain, do i get you right this way: you want IE to display the excell spreadsheet directly in the browserwindow as a so called "active document" ("office plugin for ie")? and further, the file is displayed within IE but the in the file contained macros are not executing?
what i would do is to place a that kind of spreadsheet file directly on the server and request it without php inbetween, then analyzing that request incl. the headers. use php later on to simulate the complete same behavior, maybe ajoute mod_rewrite to completely fake the request (which should not be necessary with your example URL).