Word Document Will Not Open Via Clients - HELP!

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Word Document Will Not Open Via Clients - HELP!

    Ok, this code works fine on the Web server machine. But when I try to run it
    via any other clients on the LAN, I keep getting scripting errors (the MS
    Word Document never opens.) Do I have to configure the server somehow to
    allow it to share this MS Word doc?

    <SCRIPT LANGUAGE=VBScript>
    Dim objWord
    Sub Btn1_onclick()
    call
    OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
    End Sub

    Sub OpenDoc(strLocation)

    Set objWord = CreateObject("Word.Application")
    objWord.Visible = true
    objWord.Documents.Open strLocation
    End Sub
    </SCRIPT>


    Todd Guest

  2. Similar Questions and Discussions

    1. PLEASE HELP ME..(How to open word document or powerpoint presentation from flash?
      Hi I have an assignment to do in which i have to design CD in Flash for m universitys course material where links are to be placed which open word...
    2. How to open word document or power point presentation from flash movie??
      Hi I have an assignment to do in which i have to design CD for m universitys course material where links are to be placed which open word document...
    3. Open word document inside director
      How do I open an external word document within director and display on stage? wishes, Priya
    4. Trying to open a word document on the shell
      I am trying to open a document as below #!/usr/local/bin/perl -w use Tk; my $mw = new MainWindow();
    5. how to create and open a MS Word document in ASP.NET
      Hi Check out this URL: http://www.codeproject.com/useritems/WordApplication.asp Ravikanth application, what is the
  3. #2

    Default Re: Word Document Will Not Open Via Clients - HELP!

    Yeah, but I need the .doc to open in it's own instance of the MS Word
    Application. If I open it within the IE Browser - the user cannot make any
    changes to it (save) etc.

    Hmm...

    Any suggestions?

    "Henke" <funboy_yodel2@hetmail.com> wrote in message
    news:%23ZoRiq9PDHA.4024@tk2msftngp13.phx.gbl...
    > This is a security issue. You canīt start an Win32 application
    > from a Vbscript in the browser without lowering the security.
    >
    > I would rather load the document in a iframe or frame from the
    > webserver
    >
    > Regards,
    >
    > // Henke
    >
    > "Todd" <tsloan@smithdata.net> wrote in message
    > news:%23142lV9PDHA.2052@TK2MSFTNGP11.phx.gbl...
    > > Ok, this code works fine on the Web server machine. But when I try to
    run
    > it
    > > via any other clients on the LAN, I keep getting scripting errors (the
    MS
    > > Word Document never opens.) Do I have to configure the server somehow to
    > > allow it to share this MS Word doc?
    > >
    > > <SCRIPT LANGUAGE=VBScript>
    > > Dim objWord
    > > Sub Btn1_onclick()
    > > call
    > > OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
    > > End Sub
    > >
    > > Sub OpenDoc(strLocation)
    > >
    > > Set objWord = CreateObject("Word.Application")
    > > objWord.Visible = true
    > > objWord.Documents.Open strLocation
    > > End Sub
    > > </SCRIPT>
    > >
    > >
    >
    >

    Todd Guest

  4. #3

    Default Re: Word Document Will Not Open Via Clients - HELP!

    You don't have any option. The only thing you can do is to allow the user to
    save the document and create a upload function if you want to save it to
    server.

    "Todd" <tsloan@smithdata.net> wrote in message
    news:uziXi19PDHA.1720@TK2MSFTNGP11.phx.gbl...
    > Yeah, but I need the .doc to open in it's own instance of the MS Word
    > Application. If I open it within the IE Browser - the user cannot make any
    > changes to it (save) etc.
    >
    > Hmm...
    >
    > Any suggestions?
    >
    > "Henke" <funboy_yodel2@hetmail.com> wrote in message
    > news:%23ZoRiq9PDHA.4024@tk2msftngp13.phx.gbl...
    > > This is a security issue. You canīt start an Win32 application
    > > from a Vbscript in the browser without lowering the security.
    > >
    > > I would rather load the document in a iframe or frame from the
    > > webserver
    > >
    > > Regards,
    > >
    > > // Henke
    > >
    > > "Todd" <tsloan@smithdata.net> wrote in message
    > > news:%23142lV9PDHA.2052@TK2MSFTNGP11.phx.gbl...
    > > > Ok, this code works fine on the Web server machine. But when I try to
    > run
    > > it
    > > > via any other clients on the LAN, I keep getting scripting errors (the
    > MS
    > > > Word Document never opens.) Do I have to configure the server somehow
    to
    > > > allow it to share this MS Word doc?
    > > >
    > > > <SCRIPT LANGUAGE=VBScript>
    > > > Dim objWord
    > > > Sub Btn1_onclick()
    > > > call
    > > > OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
    > > > End Sub
    > > >
    > > > Sub OpenDoc(strLocation)
    > > >
    > > > Set objWord = CreateObject("Word.Application")
    > > > objWord.Visible = true
    > > > objWord.Documents.Open strLocation
    > > > End Sub
    > > > </SCRIPT>
    > > >
    > > >
    > >
    > >
    >
    >

    zPaul Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139