Sign In  Sign Up Live-Chat

A little trouble with the DataUtil.ForceDownload

Last post 10-11-2008, 11:08 AM by dean. 1 replies.
Sort Posts: Previous Next
  •  03-24-2008, 4:38 PM 118939

    A little trouble with the DataUtil.ForceDownload

    Hello,

    I'm having a little trouble with DataUtil.ForceDownload method.

    Here's what I'm doing:
     DataUtil.ForceDownload(Page, userDirectory + @"\Letters.doc", "Letters.doc", "application/msword", true);

    This line is in the code behind file on a page called Output.aspx.

    The file opens in Word, except that instead of the filename showing as "Letters.doc", the Word title bar shows the file as "Output.axpx (Read Only)".

    What can I do so that the output filename is the name specified instead of the page name?
    Thanks!



     
  •  10-11-2008, 11:08 AM 147576 in reply to 118939

    Re: A little trouble with the DataUtil.ForceDownload

    Attachment: Present (inaccessible)

    Similar to post http://www.aspose.com/community/forums/thread/118942/another-question-about-datautil.forcedownload.aspx, it needs to change the setting of windows.

    Try open the windows explorer, on the Tools menu -> Folder Options -> FileTypes, find doc in the list and click Advanced, make sure the checkbox before "Comfirm open after download" was selected.

     


    Dean Deng
    Lead Developer
    Aspose Guangzhou Team
    About Us
    Contact Us
     
View as RSS news feed in XML