Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: leave-asp_web_howto-527950Y@p...


Message #1 by "Eldridge, Cindy (CORP)" <Cindy.Eldridge@C...> on Mon, 29 Apr 2002 12:44:16 -0400

-----Original Message-----
From: Aaron Fleming [mailto:aaron@f...]
Sent: Friday, April 26, 2002 2:23 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Starting Winword in the foreground


Hey Serge - this works - but note that you have to remove anonymous
access from IIS.

<%

	    Set WordApp = CreateObject("word.application")
	    Set WordDoc = WordApp.Documents.Add("")
   
	    WordApp.Application.Visible = TRUE
	    
	    Set MyRange1 = WordDoc.Paragraphs.Add.Range
	    MyRange1.InsertBefore("Some text goes here...")	    
	    MyRange1.Style = "Heading 1"	    
	    
	    Set MyRange1 = WordDoc.Paragraphs.Add.Range
	    MyRange1.InsertBefore("Some more text could go here")
	    MyRange1.Font.Bold = true
			    	    
		Set WordDoc = Nothing
		Set WordApp = Nothing			
%>

Cheers,
Aaron

-----Original Message-----
From: Serge Wagemakers [mailto:swagemakers@d...] 
Sent: April 26, 2002 1:13 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Starting Winword in the foreground


Hi Jack,

I tried your snippet... Now I get 500 errors, the page cannot be
displayed. I'm surely missing something very simple here, but I haven't
got a clue what exactly... I've been banging my head over this for about
16 hours straight...

If you (or someone else of course) have anything to point me in the
right direction I just might get it to work....

Hopefully you or someone replies on this...

Thanks very VERY much in advance...

Serge

----- Original Message -----
From: "Jack_Speranza" <jsperanza@g...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Friday, April 26, 2002 4:37 PM
Subject: [asp_web_howto] RE: Starting Winword in the foreground


>
> Unless you have particular reasons for sticking with WSH, why not 
> create
and
> maintain control of the application programatically within your 
> code... here's a little snippet using VBScript that will launch Word, 
> open a document, and make everything visible on the workstation.  
> Works on either server or client side as long as Word is installed -- 
> naturally ;-)
>
> <%
> Dim oApp, oDoc
>
> Set oApp = CreateObject("Word.Application") ' Server.CreateObject if 
> you want to invoke in server-side code Set oDoc = oApp.ActiveDocument
>
> blah, blah  ' insert code for doing whatever you need before making 
> application visible...
>
> oApp.Visible = True
> oApp.Activate
>
> blah, blah  ' any other code you want to deal with...
> %>
>
>
> -----Original Message-----
> From: Serge Wagemakers [mailto:swagemakers@d...]
> Sent: Friday, April 26, 2002 10:27 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Starting Winword in the foreground
>
>
> Hi,
>
> If anyone has successfully started winword.exe on machine using WSH, 
> let
me
> know how to do this...
>
> What I've done sofar is this:
>
> <%
> Set wsh = CreateObject("WScript.Shell")
> wsh.Run "winword.exe",1,false
> Set wsh = Nothing
> end if
> %>
>
> This snippet is used to start winword on a webserver.
>
> The winword.exe is in the %PATH% so it starts automatically. What I 
> can
see
> is that when opening the taskmanager, the Winword.exe process is 
> running, but can't see anything happening on the Desktop.
>
> The server is W2K using IIS5.0. I'm completely lost!
>
> If anyone has any tips/pointers/etc. on how to start winword on a 
> remote machine, so I can actually see it being started on the desktop 
> of the webserver, PLEASE respond...
>
> I almost tried anything, but can't seem to work this one out...
>
> Thanks very much in advance...
>
> Serge
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus 
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> me
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus 
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> me
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

  Return to Index