Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Create a MSWord file and call macros and functions?


Message #1 by "Owen Mortensen" <ojm@a...> on Thu, 14 Dec 2000 08:50:59 -0700
(IIS 4.0, Windows NT Server 4.0 SP6)



I need to be able to create an MSWord document and call macros from an ASP

page.



When I run the following code, MSWord does not start.  Nothing seems to

happen except that a "Windows Installer" application starts up on the server

and I eventually get back the output "Creating the word app".  "Word app

created" is never displayed.



<%

dim objWord

response.write "Creating the word app<BR>"

set objWord = CreateObject("Word.Application")

response.write "Word app created<BR>"

objWord.Visible = True

objWord.Documents.Add "c:\temp\redesign.doc"

'objWord.ActiveDocument.Run MacroName

%>



Any ideas?

TIA,

Owen





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #2 by "Bill Stanley" <bstanley@m...> on Thu, 14 Dec 2000 15:59:42 -0500
See Knowledge Base article Q237337; this is from there:



Dim objWD as Word.Application

   Set objWD = CreateObject("Word.Application")



-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 7:57 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Create a MSWord file and call macros and

functions?





(IIS 4.0, Windows NT Server 4.0 SP6)



I need to be able to create an MSWord document and call macros from an ASP

page.



When I run the following code, MSWord does not start.  Nothing seems to

happen except that a "Windows Installer" application starts up on the server

and I eventually get back the output "Creating the word app".  "Word app

created" is never displayed.



<%

dim objWord

response.write "Creating the word app<BR>"

set objWord = CreateObject("Word.Application")

response.write "Word app created<BR>"

objWord.Visible = True

objWord.Documents.Add "c:\temp\redesign.doc"

'objWord.ActiveDocument.Run MacroName

%>



Any ideas?

TIA,

Owen





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #3 by "Owen Mortensen" <ojm@a...> on Thu, 14 Dec 2000 15:52:54 -0700
Ummmm.....  I'm using ASP from an IIS 4 web server NOT VisualBasic OR

VBScript.  I have NO PROBLEM getting the example to work from EITHER

VisualBasic or VBScript: ONLY in ASP.  Anyone know if I can call a vbs file

from ASP?



TIA,

Owen



-----Original Message-----

From: Bill Stanley [mailto:bstanley@m...]

Sent: Thursday, December 14, 2000 2:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





See Knowledge Base article Q237337; this is from there:



Dim objWD as Word.Application

   Set objWD = CreateObject("Word.Application")



-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 7:57 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Create a MSWord file and call macros and

functions?





(IIS 4.0, Windows NT Server 4.0 SP6)



I need to be able to create an MSWord document and call macros from an ASP

page.



When I run the following code, MSWord does not start.  Nothing seems to

happen except that a "Windows Installer" application starts up on the server

and I eventually get back the output "Creating the word app".  "Word app

created" is never displayed.



<%

dim objWord

response.write "Creating the word app<BR>"

set objWord = CreateObject("Word.Application")

response.write "Word app created<BR>"

objWord.Visible = True

objWord.Documents.Add "c:\temp\redesign.doc"

'objWord.ActiveDocument.Run MacroName

%>



Any ideas?

TIA,

Owen







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #4 by "Unterste, Andreas" <unterste@d...> on Fri, 15 Dec 2000 03:33:42 -0500
shouldn't it be Set objWord = Server.CreateObject("Word.Application") ?



Cheers,

Andreas



Andreas Unterste

Dow Europe S.A.

- Treasury -

Ph: + 41 1 728 3033

Fax: + 41 1 728 3001







-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 23:53

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





Ummmm.....  I'm using ASP from an IIS 4 web server NOT VisualBasic OR

VBScript.  I have NO PROBLEM getting the example to work from EITHER

VisualBasic or VBScript: ONLY in ASP.  Anyone know if I can call a vbs file

from ASP?



TIA,

Owen



-----Original Message-----

From: Bill Stanley [mailto:bstanley@m...]

Sent: Thursday, December 14, 2000 2:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





See Knowledge Base article Q237337; this is from there:



Dim objWD as Word.Application

   Set objWD = CreateObject("Word.Application")



-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 7:57 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Create a MSWord file and call macros and

functions?





(IIS 4.0, Windows NT Server 4.0 SP6)



I need to be able to create an MSWord document and call macros from an ASP

page.



When I run the following code, MSWord does not start.  Nothing seems to

happen except that a "Windows Installer" application starts up on the server

and I eventually get back the output "Creating the word app".  "Word app

created" is never displayed.



<%

dim objWord

response.write "Creating the word app<BR>"

set objWord = CreateObject("Word.Application")

response.write "Word app created<BR>"

objWord.Visible = True

objWord.Documents.Add "c:\temp\redesign.doc"

'objWord.ActiveDocument.Run MacroName

%>



Any ideas?

TIA,

Owen







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #5 by "Owen Mortensen" <ojm@a...> on Fri, 15 Dec 2000 08:32:13 -0700
That doesn't work either.  Same results....



Owen



-----Original Message-----

From: Unterste, Andreas [mailto:unterste@d...]

Sent: Friday, December 15, 2000 1:34 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





shouldn't it be Set objWord = Server.CreateObject("Word.Application") ?



Cheers,

Andreas



Andreas Unterste

Dow Europe S.A.

- Treasury -

Ph: + 41 1 728 3033

Fax: + 41 1 728 3001







-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 23:53

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





Ummmm.....  I'm using ASP from an IIS 4 web server NOT VisualBasic OR

VBScript.  I have NO PROBLEM getting the example to work from EITHER

VisualBasic or VBScript: ONLY in ASP.  Anyone know if I can call a vbs file

from ASP?



TIA,

Owen



-----Original Message-----

From: Bill Stanley [mailto:bstanley@m...]

Sent: Thursday, December 14, 2000 2:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





See Knowledge Base article Q237337; this is from there:



Dim objWD as Word.Application

   Set objWD = CreateObject("Word.Application")



-----Original Message-----

From: Owen Mortensen [mailto:ojm@a...]

Sent: Thursday, December 14, 2000 7:57 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Create a MSWord file and call macros and

functions?





(IIS 4.0, Windows NT Server 4.0 SP6)



I need to be able to create an MSWord document and call macros from an ASP

page.



When I run the following code, MSWord does not start.  Nothing seems to

happen except that a "Windows Installer" application starts up on the server

and I eventually get back the output "Creating the word app".  "Word app

created" is never displayed.



<%

dim objWord

response.write "Creating the word app<BR>"

set objWord = CreateObject("Word.Application")

response.write "Word app created<BR>"

objWord.Visible = True

objWord.Documents.Add "c:\temp\redesign.doc"

'objWord.ActiveDocument.Run MacroName

%>



Any ideas?

TIA,

Owen









---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #6 by "Tom Mallard" <mallard@m...> on Fri, 15 Dec 2000 10:06:06 -0800
set oWord = createobject("Word.Application")

response.write oWord.version

oWord.documents.add("d:\xxxxxxx.doc")

oWord.visible = true



This works on my machine...returns "8.0" to the screen and opens the file.

You may need to load before making visible...that's a difference.



tom mallard

seattle

----- Original Message -----

From: "Owen Mortensen" <ojm@a...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, December 15, 2000 7:32 AM

Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

functions?





| That doesn't work either.  Same results....

|

| Owen

|

| -----Original Message-----

| From: Unterste, Andreas [mailto:unterste@d...]

| Sent: Friday, December 15, 2000 1:34 AM

| To: ASP Web HowTo

| Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

| functions?

|

|

| shouldn't it be Set objWord = Server.CreateObject("Word.Application") ?

|

| Cheers,

| Andreas

|

| Andreas Unterste

| Dow Europe S.A.

| - Treasury -

| Ph: + 41 1 728 3033

| Fax: + 41 1 728 3001

|

|

|

| -----Original Message-----

| From: Owen Mortensen [mailto:ojm@a...]

| Sent: Thursday, December 14, 2000 23:53

| To: ASP Web HowTo

| Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

| functions?

|

|

| Ummmm.....  I'm using ASP from an IIS 4 web server NOT VisualBasic OR

| VBScript.  I have NO PROBLEM getting the example to work from EITHER

| VisualBasic or VBScript: ONLY in ASP.  Anyone know if I can call a vbs

file

| from ASP?

|

| TIA,

| Owen

|

| -----Original Message-----

| From: Bill Stanley [mailto:bstanley@m...]

| Sent: Thursday, December 14, 2000 2:00 PM

| To: ASP Web HowTo

| Subject: [asp_web_howto] RE: Create a MSWord file and call macros and

| functions?

|

|

| See Knowledge Base article Q237337; this is from there:

|

| Dim objWD as Word.Application

|    Set objWD = CreateObject("Word.Application")

|

| -----Original Message-----

| From: Owen Mortensen [mailto:ojm@a...]

| Sent: Thursday, December 14, 2000 7:57 PM

| To: ASP Web HowTo

| Subject: [asp_web_howto] Create a MSWord file and call macros and

| functions?

|

|

| (IIS 4.0, Windows NT Server 4.0 SP6)

|

| I need to be able to create an MSWord document and call macros from an ASP

| page.

|

| When I run the following code, MSWord does not start.  Nothing seems to

| happen except that a "Windows Installer" application starts up on the

server

| and I eventually get back the output "Creating the word app".  "Word app

| created" is never displayed.

|

| <%

| dim objWord

| response.write "Creating the word app<BR>"

| set objWord = CreateObject("Word.Application")

| response.write "Word app created<BR>"

| objWord.Visible = True

| objWord.Documents.Add "c:\temp\redesign.doc"

| 'objWord.ActiveDocument.Run MacroName

| %>

|

| Any ideas?

| TIA,

| Owen

|

|

|

|



---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index