|
 |
asp_web_howto thread: RE: Starting Winword in the foreground
Message #1 by "Serge Wagemakers" <swagemakers@d...> on Mon, 6 May 2002 10:08:40 +0200
|
|
Hi all,
I just wanted to let you know I figured it out...
DCOMCNFG did the trick. There's a "default " tab, which has "COM Internet
Services enabled" or something like that, which default is turned off. I had
to turn that on. Now Word starts a document on the desktop and is visible!
It looks like this feature is on W2K machines and not on NT 4 machines.
Anyway, thanks very much for all the help!!!
Greetings,
Serge
----- Original Message -----
From: "Drew, Ron" <RDrew@B...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Monday, April 29, 2002 1:42 PM
Subject: [asp_web_howto] RE: Starting Winword in the foreground
> I use this to open a word document and allow printing...not sure if it
> will help you.
> <%
> Dim docu
> Set docu = CreateObject("Word.Document")
> docu.Application.Visible = True
> docu.content.insertAfter "Print Document!"
> docu.content.insertParagraphBefore
> docu.PrintOut
> Set docu = Nothing
> %>
>
> -----Original Message-----
> From: Serge Wagemakers [mailto:swagemakers@d...]
> Sent: Friday, 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
|
|
 |