473,324 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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

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?
Nov 18 '05 #1
2 1709
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" <te***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
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?
Nov 18 '05 #2
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)

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ui**************@tk2msftngp13.phx.gbl...
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" <te***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
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?

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
4
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
1
by: ram | last post by:
how do I open a word document within a webform? I need to open the document within the form so the user can edit the document and then click on a button on the form (so that the document is...
3
by: John | last post by:
Hi I am using the code given at the end to open a word document from within vb.net. It works fine the first time but the second time I get the error; Unhandled Exception:...
1
by: ourspt | last post by:
Hi, We are working on an ASP.NET (VB.NET) application and we have a problem opening a word document from our application. When we try to open the word document, we do not get any error...
2
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to...
8
by: gazza67 | last post by:
Hi, I want to do something that I thought would be simple but i cant seem to work it out, perhaps someone out there could help me. I want to browse for a file (it will be a word document),...
0
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I am creating a webpage and opening it as a Word document. Problem is that as I create one of the questions, some of the text is not appearing in the document as it should. As I step through it, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.