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

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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?
 
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)
 
Back
Top