If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Opening a Word 2007 document from a dynamic ASP page

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-09, 13:05
dalythe dalythe is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
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.
Reply With Quote
  #2 (permalink)  
Old 02-23-09, 18:39
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
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
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
Reply With Quote
  #3 (permalink)  
Old 02-24-09, 12:17
powernicholas powernicholas is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On