Guys
I have an c# intranet application from which I need to be able to open a Word document client side.
Any ideas?
Peter
Printable View
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?Quote:
Originally Posted by thebloke
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
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.
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.
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.
Reponse.Redirect to the DOC file. It will open on the client machine.Quote:
Originally Posted by thebloke
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.