Set Default Filename in Save As


#1

Hi Guys

How do you set the default filename that appears in the Save As… dialog when the user views a worksheet in the browser.

The code I use to display the worksheet is:

XL.Save(“MyNewReport.xls”, SaveType.OpenInBrowser, FileFormatType.Default, mContext.Response)

What the user sees in the Save As… dialog is the URL with the querystring of the page they have browsed to.

I have looked at a previous response in this forum which just directs to the Samples. However none of these behave in the way I want either and I can’t see any code that might do this.

Please can you help?


#2

Hi,

That’s the work routine of IE. The excel file is sent to client as an attachment or an inline document of this aspx page, so it always show the name of page.