Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    pankajjoshi is on a distinguished road

      0  

    Default Problem while downloading word document using Iframe in IE.

    Problem while downloading word document using Iframe in IE.


    Hi,

    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('clientMemo.ice.hidden.label').update('<iframe src = \"' + resultUrl + '\" width=\"100%" height=\"400px"\"></iframe>' || '');

    //Controller code
    response.setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
    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);
    outputStream.flush();
    outputStream.close();

    Please help me as I got stuck because of this.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,732
    Vote Rating
    756
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I don't see how this relates to Ext JS 3 from what you have provided.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    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.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar