Opening a microsoft word document from within an ASP.Net WebForm

G

Guest

I'm trying to figure out how open a microsoft word document from within an asp.net application. There is information in the web form that I need to merge with the opened document. I can't seem to find any code examples or explanations on how this is done if it's even possible. Has anyone successfully accomplished this task or even tried and if so, how is it done?
 
K

Kevin Spencer

Office applications have COM interfaces. You would have to use a COM Interop
assembly to interact with Word on the server. The Office COM references can
be found in your Office installation folders.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

terry said:
I'm trying to figure out how open a microsoft word document from within an
asp.net application. There is information in the web form that I need to
merge with the opened document. I can't seem to find any code examples or
explanations on how this is done if it's even possible. Has anyone
successfully accomplished this task or even tried and if so, how is it done?
 
P

Paul Glavich [MVP - ASP.NET]

There are a set of Primary Interop assemblies available for office (PIA). I
dont have the link handy but do a search on MSDN or google to find them.
This will provide the reference to your COM interop layer. Within ASP.Net
you will need to adjust the security to allow calling of unmanaged code
though through the .Net security policy config (Control Panel -->
Administrative Tools --> .Net Framework 1.1 configuration)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top