Jump to content

Is it possible ?


alasoft

Recommended Posts

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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...