View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Number gets added to filename

I would think that excel wouldn't be doing anything but opening a file stored on
a disk somewhere. I've never seen it change the name of a file when opening it.

But I don't speak the web stuff.

You may want to ask in a forum dedicated to whatever language your web
application is written?????

ExcelUser wrote:

I don't think so since the problem exists even when I try to open a file
which does not exist already.

"Dave Peterson" wrote:

Any chance it's the web application that's noticing that there's an existing
file with that name, so it decides to make a unique filename????

ExcelUser wrote:

My web application generates an excel and sets a filename to the excel for
download. Sample file name is "aaa-09.02.2006-to-09.08.2006.xls". This is how
the code will show:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;
filename="+fileName+";");
But when I try to download the excel from the application, excel opens /
saves the file as aaa-09[1].02.2006-to-09.08.2006.xls thereby inserting
numbers to the filename. I have tried the solutions given in the group like
setting the Excel "OPEN" as default,etc., but nothing seemed to work. Please
let me know how to force excel to retain the filename.


--

Dave Peterson


--

Dave Peterson