alasoft Posted October 24, 2012 Share Posted October 24, 2012 Is it possible to show some Word Document (or Excel document) in a UniGUI Frame ?? .. How ? .. Please help !! .. :-) Thanks ! Rober Quote Link to comment Share on other sites More sharing options...
glendean Posted October 24, 2012 Share Posted October 24, 2012 If no-one has any better idea's you might want look at using TUniUrlFrame to open documents using javascript There is example at http://www.kavoir.com/2009/01/using-javascript-to-open-excel-and-word-files-in-html.html but it uses activex so restricts functionality to IE Glen <script type="text/javascript"> function openWord(strFilePath) { var yourSite = "http://www.yoursite.com"; openWordDocPath(yourSite + strFilePath); } function openWordDocPath(strLocation) { var objWord; objWord = new ActiveXObject("Word.Application"); objWord.Visible = true; objWord.Documents.Open(strLocation); } </script> Quote Link to comment Share on other sites More sharing options...
alasoft Posted October 24, 2012 Author Share Posted October 24, 2012 If no-one has any better idea's you might want look at using TUniUrlFrame to open documents using javascript There is example at http://www.kavoir.com/2009/01/using-javascript-to-open-excel-and-word-files-in-html.html but it uses activex so restricts functionality to IE Glen <script type="text/javascript"> function openWord(strFilePath) { var yourSite = "http://www.yoursite.com"; openWordDocPath(yourSite + strFilePath); } function openWordDocPath(strLocation) { var objWord; objWord = new ActiveXObject("Word.Application"); objWord.Visible = true; objWord.Documents.Open(strLocation); } </script> I'll try .. thanks !!! Rober Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted October 24, 2012 Share Posted October 24, 2012 If you want to be independant from browser and office installation you can upload your office files to Microsoft Skydrive and there you can get a code to embed the document on a website (UniHtmlFrame). Quote Link to comment Share on other sites More sharing options...
alasoft Posted October 25, 2012 Author Share Posted October 25, 2012 If you want to be independant from browser and office installation you can upload your office files to Microsoft Skydrive and there you can get a code to embed the document on a website (UniHtmlFrame). Thanks !! .. Now .. I've mailed a .docx document, then open it (preview, without downloading) in Chrome. How is that possible ? Rober Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.