0 Replies Latest reply on Sep 18, 2012 4:46 AM by Annie.Developer

    Preview ppt,word,excel,pdf in flex using iframe

    Annie.Developer

      hi,

       

      i am working upon flex 4.6 web application.i have a requirement in my project to preview ppt,pdf,word and excel inside flex container. i have achieved previewing only pdf by using flex-iframe 1.5.1, since pdf has browser plugginn. i am just binding the download path what i am getting from the server to the source of my iframe In HTML5 we can preview it using iframe by binding it to google docs viewer. i tried doing the same in flex but for me its showing that because of the security constaints of the owner cannot display it rather open it in another tab.

       

      kindly suggest me a way to preview ppt,word and excel inside flex container using iframe or if any other better or simple approach is there.

      kindly help... any help would be greatly appreciated.

       

      heres is my code-

       

      <mx:VBox

      id="vbxFrame" width="100%" height="100%" backgroundColor="#FFFFFF" includeIn="pdf" verticalCenter="0" horizontalCenter="0">

       

       

      <flexiframe:IFrame id="iframeFlexpdf" backgroundColor="#cccccc" width="100%" height="100%" horizontalCenter="0" verticalCenter="0" source="any url"/>

      </mx:VBox>