Results 1 to 7 of 7

Thread: Open Word document on client machine

  1. #1

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Open Word document on client machine

    Guys

    I have an c# intranet application from which I need to be able to open a Word document client side.

    Any ideas?

    Peter
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Re: Open Word document on client machine

    Quote Originally Posted by thebloke
    Guys

    I have an c# intranet application from which I need to be able to open a Word document client side.

    Any ideas?

    Peter
    what do you mean open a document on client machine?
    u mean if i have a doc on my machine and i go to your website and u automatically open that?
    you cant do that for security reasons

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Open Word document on client machine

    Do you mean... a web application?

    If the DOC is on the server, then you can Response.Redirect() to the doc file, and the browser will handle it automatically.

  4. #4

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Re: Open Word document on client machine

    I need to open a word document and send it to a printer from a asp.net c# web page.

    The web page is on our internal network, as is the word document but I don't want a lot of people opening instances of winword.exe on the server so it would be preferable for the web application to open an instance of word on the client machine.
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  5. #5
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: Open Word document on client machine

    There is a COM control called DSOFramer.ocx which you can have a look at, to resolve your problem. We had used it in a Desktop application and hence don't know how it behaves on Web (but the purpose of the ocx is to host MSOffice apps). For a better idea how it looks you can visit this page (and I'm assuming they have used DSOFramer to launch Word even though I don't see any WINWORD.exe instance when this page is opened). Also be advised that the functionality exposed through DSOFramer is very limited even on desktop applications.
    Hope it helps.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Open Word document on client machine

    Quote Originally Posted by thebloke
    I need to open a word document and send it to a printer from a asp.net c# web page.

    The web page is on our internal network, as is the word document but I don't want a lot of people opening instances of winword.exe on the server so it would be preferable for the web application to open an instance of word on the client machine.
    Reponse.Redirect to the DOC file. It will open on the client machine.

  7. #7

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Re: Open Word document on client machine

    Unfortunately not quite that simple. We need it to open in the background, merge some data, send it to the printer and close again.

    Looks like we've sorted it server side now, but thanks.
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

Posting Permissions

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



Click Here to Expand Forum to Full Width