locked
When downloading excel file and opening it in excel opens with different file name RRS feed

  • Question

  • Hi,

    We have a asp.net intranet application which sends excel file as attachment with filename "SGCyyyyMMdd.xls" when downloadexcel.ashx page is accessed. When we access the downloadexcel.ashx page in IE displays a dialog with open, save , save as dialog with the file name specified above. When we directly open the file in excel by clicking the open option the name changed to DownloadExcel.xls in Excel. Why the file name SGCyyyyMMdd.xls is not used in excel. When i save from internet explored it is saving correctly with the file name SGCyyyyMMdd.xls.  Only when directly opening the file name is modified to have url name.

    Any help would be appreciated

    Monday, June 29, 2015 11:53 AM

All replies

  • Hi,

    You meant only when choose to open the excel file through IE, its name would be changed. If you open the file from File Explore, this problem won't going to happen, isn't it?

    Have you using other website excel for test? For example, download a excel file from other website, then make a test with same process.

    If its excel problem, how about using Office repair to fix this problem for test?

    To repair office, open Program and Features, then right click Office and choose Repair.


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Tuesday, June 30, 2015 5:46 AM