473,387 Members | 3,801 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,387 software developers and data experts.

opening and saving word documents in asp.net

I have been having a very difficult time trying to open a word document in
ASP.NET.

I have searched here and Google, with no success in finding answers to my
problems. Although many articles say how easy it is, I cannot get it to work.

My problem appears, at this point, to be that I keep getting an "Access
Denied" message when I try to instantiate a new Word.ApplicationClass object.

What can I do? The error page suggests setting the correct security for the
file. What file? It is failing before even trying to open any file.

If anyone can help, it would be very much appreciated.
Nov 18 '05 #1
4 1269
"=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com> wrote in
news:4B**********************************@microsof t.com:
I have been having a very difficult time trying to open a word
document in ASP.NET.


Are you using the Office Interops?

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
Yes, I believe so....I added the COM reference for the Word 11.0 object
library. Is this what you are referring to?

"Lucas Tam" wrote:
"=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com> wrote in
news:4B**********************************@microsof t.com:
I have been having a very difficult time trying to open a word
document in ASP.NET.


Are you using the Office Interops?

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #3
"=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com> wrote in
news:B7**********************************@microsof t.com:
Yes, I believe so....I added the COM reference for the Word 11.0 object
library. Is this what you are referring to?


No. Microsoft has a set of pre-built interops that may function a bit
better than directly referecing the COM object:

http://msdn.microsoft.com/library/de...l=/library/en-
us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #4
I'll look at that...Thanks Lucas.

"Lucas Tam" wrote:
"=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com> wrote in
news:B7**********************************@microsof t.com:
Yes, I believe so....I added the COM reference for the Word 11.0 object
library. Is this what you are referring to?


No. Microsoft has a set of pre-built interops that may function a bit
better than directly referecing the COM object:

http://msdn.microsoft.com/library/de...l=/library/en-
us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 18 '05 #5

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

Similar topics

5
by: Fazer | last post by:
Here comes another small question from me :-) I am curious as to how I should approach this issue. I would just want to parse simple text and maybe perhaps tables in the future. Would I have to...
1
by: Ken | last post by:
Hi, I've written a C# app in VS .Net 2003 that gets and sets custom/summary properties of Word documents by selecting a directory and get/setting values using BuiltInDocumentProperties and...
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...
1
by: Jose Egea | last post by:
Hello: I would like to make an application to manage word and pdf documents, opening and saving them in a sql database. Is there any way to open a document sending to the winword application a...
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...
4
by: Charlie Brookhart | last post by:
I am trying to write a code for a button click event. When the button is clicked, it is supposed to bring up an open file dialog box to allow the user to select the document they which to open....
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...
2
by: ClearCut | last post by:
I have written a program in VB6 that opens an existing Word document and adds some text to the top of the document before printing it. Now I want to close the document without saving the changes. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.