Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    1

    Unanswered: Opening a Word 2007 document from a dynamic ASP page

    I am designing an ASP page that will allow staff to view a word document from a remote server through a textarea form element on the page. Also I want them to be able to modify this document too. This was supposed to be my function in Javascript:

    function loadworddoc(){
    var jdoc = new ActiveXObject("Word.Application","\\sr-data1"); // creates the word object
    jdoc.Visible=true; // does display Word window
    jdoc.Documents.Open("C:\inetpub\wwwroot\ci resources\_docs\resourc guide.doc"); // specify
    jdoc.quit(0); // quit word (very important or you'll quickly chew up memory!)
    }

    I was wondering how to do this through ASP, since this didn't work.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    microsoft have got a product call sharepoint

    I think that let you do what you want.
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Aug 2008
    Posts
    12
    Quote Originally Posted by dalythe
    I am designing an ASP page that will allow staff to view a word document from a remote server through a textarea form element on the page. Also I want them to be able to modify this document too. This was supposed to be my function in Javascript:

    function loadworddoc(){
    var jdoc = new ActiveXObject("Word.Application","\\sr-data1"); // creates the word object
    jdoc.Visible=true; // does display Word window
    jdoc.Documents.Open("C:\inetpub\wwwroot\ci resources\_docs\resourc guide.doc"); // specify
    jdoc.quit(0); // quit word (very important or you'll quickly chew up memory!)
    }

    I was wondering how to do this through ASP, since this didn't work.
    .Open("file:///C:/inetpub/wwwroot/ci") works for me

    although I open the file in a new window using window.open

    although if this word document is in the wwwroot folder... I am pretty certain you don't need the c:\inetpub\wwwroot...as it looks like your document is in your root folder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •