Results 1 to 2 of 2

Thread: Problem while downloading word document using Iframe in IE.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Vote Rating

    Default Problem while downloading word document using Iframe in IE.


    I have a button in my screen. On clicking that button , I want to pass control to action which will create word document and the user will see download window to download it in local directory. I have done this using Iframe and it is working fine in Mozilla, but is IE all version when I am clicking that button, I am getting 'Unknown Runtime error'. My code is as follows:

    //JS file code.
    var resultUrl = 'issuerSetupController/generateClientMemo.action';

    Ext.getCmp('').update('<iframe src = \"' + resultUrl + '\" width=\"100%" height=\"400px"\"></iframe>' || '');

    //Controller code
    response.setHeader("Content-disposition", "attachment;filename=" + "document.docx");
    // InputStream inputStream = new FileInputStream(file);
    OutputStream outputStream = response.getOutputStream();
    // IOUtils.copy(inputStream, outputStream);
    documentGenerator.generateDocument(formatString, outputStream);

    Please help me as I got stuck because of this.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    I don't see how this relates to Ext JS 3 from what you have provided.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts