Word automation

Discussion in 'ASP General' started by Joe Lalor, Aug 9, 2008.

  1. Joe Lalor

    Joe Lalor Guest

    I am trying to automatically open a word document in an asp application. It
    works fine on the local host, but when I deploy on a W2003 server, the
    winword process starts ( I can see it in the task manager on the server), but
    the document doesn't open on the client. If I define the document as the
    target of a hyperlink on my asp page, it opens fine when I click on it. I've
    tried using :

    System.Diagnostics.Process.Start("c:\test.DOC")

    (System.Diagnostics.Process.Start("notepad.exe") also doesn't work)

    and

    Batch.appWord = New Word.Application

    Batch.docWord = Batch.appWord.Documents.Open("c:\test.doc")

    What am I doing wrong?

    Thanks
    Joe Lalor, Aug 9, 2008
    #1
    1. Advertising

  2. Joe Lalor

    Joe Lalor Guest

    Thanks Mark

    I am using asp.net (vb.net)

    Is it possible to automate the hyperlink click in code?

    Joe
    Joe Lalor, Aug 10, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg Howard
    Replies:
    1
    Views:
    3,280
    Matt Garrish
    Jul 2, 2004
  2. Ben Fidge
    Replies:
    0
    Views:
    506
    Ben Fidge
    Jul 16, 2003
  3. Rachel

    word automation in asp.net

    Rachel, Aug 1, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    365
    Chris Jackson
    Aug 4, 2003
  4. apondu
    Replies:
    0
    Views:
    594
    apondu
    Jul 19, 2007
  5. Michael G. Schneider

    Modifying a Word document without using Word Automation

    Michael G. Schneider, Dec 15, 2003, in forum: ASP General
    Replies:
    5
    Views:
    282
    el.c. - myLittleTools.net
    Dec 16, 2003
Loading...

Share This Page