Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
PivotTable problems downloaded into IE
I have a Web application that lets users download Excel files. For
normal Excel files it works fine: you can open the XLS directly, or save to disk and then open it. But if the report contains a PivotTable based on a named range it chokes with "The PivotTable field name is not valid" if you open the XLS from the Web link instead of first saving it to the desktop or some other normal file location. The problem appears to be with the way IE changes the filename in the temp directory. I'm setting the Content-Disposition header to attachment and specifying a filename, e.g. MyReport.xls. It ends up in Content.IE5 under Temporary Internet Files as MyReport[1].xls. The brackets in the filename appear to be what's causing problems with the PivotTable; if you save the file without the brackets even in the same directory it works. This link: http://groups.google.co.uk/group/mic...18a3ab143969cc appears to suggest that after 2002 Excel started embedding the filename as part of the named range reference used by the PivotTable for files that appear to come from a dynamic source (e.g. a GET URL, which is the case here) and in fact I can get another error (cannot open PivotTable source file 'LoadReport?rptId=4506') if I don't set the headers to name the file, similar to the problem described there. I'm seeing this with Windows XP/Excel 2003/IE6. What is the best workaround for this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating a PivotTable w/o selecting data in an existing PivotTable | Excel Discussion (Misc queries) | |||
Pivottable Field items code -problems | Excel Programming | |||
Double Dashes Causing problems in downloaded records | Excel Programming | |||
PivotTable - PivotTable Field name is not valid - error! | Excel Programming | |||
"Problems obtaining data" error refreshing Excel pivottable | Excel Programming |