alasoft Posted October 24, 2012 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
glendean Posted October 24, 2012 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
alasoft Posted October 24, 2012 Author 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
Oliver Morsch Posted October 24, 2012 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
alasoft Posted October 25, 2012 Author 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
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.