loading .doc .docx file into flex component from javascript which is called from flex actionscript

StackOverflow https://stackoverflow.com/questions/19780943

문제

I can load a pdf file into a flex component by calling the following javascript from actionscript:

document.getElementById("pdfFrame").innerHTML = "<object id='pdfIFrame'    data='"+url+"'  type='application/pdf'>  </object>";

I pass this function a URL indicating the location of the pdf file which is to be loaded.

This is working fine.

Now, i want to use same method for loading .doc and .docx files, so i am changed the type to 'application/msword', which is the MIME type for Word files. I have confirmed this for my file. But the Word file is not getting loaded .

Can anybody point me in the right direction?

Thank you

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top