Free Support Forum - aspose.com

File Download - Open and Save qu

Using the code line:

doc.Save("SignOffSht.doc", SaveFormat.FormatDocument, SaveType.OpenInWord, Response);

I get the File Download dialogue appearing twice in succession before Word opens and shows the file. In Word, the file has been saved in the IE temp directory with the name SignOffSht[1].doc

The code debugger suggests that the above line is encountered only once (as expected). I have tried this with Word definitely not running, and with a file name which does not already exist. The one and only difference in the two download dialogues is that the "Always ask.." option is disabled the first time, and enabled the second time - all very odd.

Any idea why:

1. The download dialogue appears twice

2. The file name has [1] appended (poss because of saving twice?)

Thanks

James

Hi James,

Thank you for considering Aspose.

1. Please read this:

http://www.aspose.com/forums/ShowPost.aspx?PostID=7238

2. Seems to be some IE feature, please search MSDN or Internet.