.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

open the microsoft word through ASP.NET

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :ASP.Net


I open Microsoft Word through ASP.NET , when I load by visual studio 2008 works well.

but when I put my site in my IIS folder and access the site through Internet Explorer and click the button nothing happens.

Don't happen anything. Why my code : 

 wdApp = New Microsoft.Office.Interop.Word.Application

doens`t works?

View Complete Post

More Related Resource Links

How to open and read Word content using Open XML SDK 2.0 for Microsoft Office?

Hello, I've built a component to read a Word Document and open it in silverlight, so I'm interested in Open XML SDK 2.0 for Microsoft Office, I read the document about this and some several examples, they're just talk about read the Headers, Comment,...and also I want to read the Word content.   Please help me, thank you.

Microsoft Office Excel cannot open or save any more documents because there is not enough available


hi all,

     i am new to asp.net programming i am trying to create an ms excel file with charts drawn in it,

i wrote the complete code for it but the it is saying

Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. 

i have set the permissions to my complete disk space and all user accounts, and i tried with anti-virus disabling also it didnt work please try to help me out and my code is :

Imports System.Data.OleDb
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Tools.Excel
Imports System

System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Excel cannot open or save any mo


Hello good people, 

I have this beast as an error. Did my research and found some posts here as well but did not do any good for me. 

Here is what I did. I had an error regarding issue rights with COM objects so I gave access rights under component services for Microsoft Excel application now I am getting this error. 

Here is some information regarding this

1. Gave rights to ASPNET and network service to my web app directory to try to fix this error. 

2. The exact same process works on my Windows 2003 server and my Windows 7 development machine. I am trying to get this going on a different windows 2003 machine that is outside of our domain.

3. Developing on windows 7 64 bit with office 2010 installed. Also excel 2010 is installed on my Web server

4. Here is the code that is causing the error: The last line is causing the error.:

            MyXl = new Microsoft.Office.Interop.Excel.Application();
            MyXl.Visible = false;
            MyWb = (Microsoft.Office.Interop.Excel._Workbook)(MyXl.Workbooks.Add(Missing.Value));
            int test = 0; 
            MySheet = (Microsoft.Office.Interop.Excel._Worksheet)MyXl.ActiveSheet;
            if (reader.HasRows)
                int InRow = 2; 
                for (int i = 0; i < Nu

open Word document in iframe without open/ save dialouge

Hello All! In my application users upload their word document and user has been given an option to preivew the uploaded document. Inorder to  preview  the document  i put the following code in my page_load eventdiv1.InnerHtml = "<iframe name='iframe4' src='DocumentUuploaded/report.doc ' target='iframe4'  frameborder='no' height='500' scrolling='no' width='800'></iframe>";The problem is it is asking Do you want to open or save this file. How can i get rid of this dialouge box . Pls helpThanks in advance.

How to use Microsoft.office interop.word in website

Hi, I have a page which creates a word doc from templet string location = Server.MapPath("~/temp/" + filename); Application app = new Application(); Document doc = app.Documents.Add(location); if(doc != null) { //Some code here } it works fine when i run from visual studio, but when i deploy it as a website in local IIS, its not working.I gave the permissions needed to access the folders in the website. What should i do to make it work. Thanks

saving docx as pdf with Microsoft.Office.Interop.Word in sharepoint

Hi!Im trying to export my docx file to PDF with Microsoft.Office.Interop.Word but im stuck. Anyone with some great ideas that could save my day.The code that im running is working fine localy but i can´t get it to work in sharepoint.The most commin exception is file not found (the same path is working fine localy)...Pls give me a hint!

Unable to open physical file - Operating system error 5: 5(error not found) Microsoft SQL Server: Er

I am trying to attach a database to SQL 2005. This database has not previously been attached. I have only just installed SQL.   I get the following message: Unable to open physical file "C:\ArrowSQL\Arr@Data\Arrow_data.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server: Error 5120)".   I have loaded SQL and the database fiel and directory with the same user acccount which is a local adminstrator ont hsi machine. I have checked that I have read/write access to the file.   The machine runs Windows Vista Business. SQL has SP 2 loaded.   What causes this?

Microsoft Word hyperlinks not working consistently in Sharepoint

I'm running into an issue with some Word hyperlinks.  I have a Word document (with embedded hyperlinks) uploaded to a document library.  If I go into the library and click on the document, the hyperlinks work as intended (which is to say that the embedded hyperlinks open up a .pdf in a NEW window). However, on my home page, I have a link to the Word document directly (not to the library, to the actual file).  If I use this link, then the embedded hyperlinks open the .pdf in the SAME window. Part of the issue seems to be that when I open the document from within the library, it opens it with what I'll call a Word emulator whereas if I follow the link from the home page, it opens it with a regular web browser.  Is there a way to get the link from the home page to also use this emulator?  Alternatively, are there any other solutions?  I really need to be able to use the home page link method.

Sharepoint 2010 Enterprise - Word can not open file in sharepoint

Hi, In the library shared documents on my first teamsite i uploaded a word 2010 document. When i click on the document my Word starts up but i'm not able to open the document. i'm also getting the following error: could not open http://pcp/Shared Documents/cv.docx. When i upload a document via word (saving the document in the library via word) i can view it when i click on the document. But when i upload an existing document into the library i keep getting the error from above when i'm trying to open it.   Thanks TIM

how to open force SharePoint 2010 to open documents withint the browser instead of invoking word app

guys, when user clicks on the word document within a document library, it opens up in the word IDE , how can i change this so that documents opens up in the browser. the "Library settings\ advanced settings\ open documents in the browser" setting is set to "open in the browser"   thanks sameer

SharPoint 2010 : Open word and excel documents within Browser without installing office Web App on S

guys, SharePoint 2010 how can i have the word documents and excel sheets open up with in the browse windows without installing Office Web App on the server, all i want to give users is the read access. Also i did not install anyting on sharepoint server to have pdf open up in the browser and yet it does. thanks in advance. sameer   thanks sameer

SharePoint 2010 Office Web Apps "Word Web App cannot open this document for viewing because of an un

<label id="message" class="WACStandardDialogLabel">I have provisioned a SharePoint 2010 Server (RTM: 14.0.4762.1000)  with Office Web Apps.</label> <label class="WACStandardDialogLabel">It is a single server with a separate SQl 2008 Standard server.</label> <label class="WACStandardDialogLabel">I have seen that there were some issues in site that were configured with a port.  The Web Application I am having issues with is running on a port  and is extended on 443 as well.</label> <label class="WACStandardDialogLabel">I can view PPTX but Word docx files can't be viewed.  The word docx files howerver can be edited in the browser.</label> <label class="WACStandardDialogLabel">I get the following error when I try to view a word file in the browser:</label> <label class="WACStandardDialogLabel"></label> "Word Web App cannot open this document for viewing because of an unexpected error. To view this document, open it in Microsoft Word. Error Id: 7f644fec-c2d7-4387-b280-31a4647afea1, 20100509213834 " I am seeing an error in the event log that identifies the Application Service account (that includes the Word Viewer Service) can't access the portal site collection database.  -I am using the appl

Sorry for this, but: I'm not able to open the thread "Media Center Addin x64: Microsoft.MediaCenter

Sorry for this, but: I'm not able to open the thread "Media Center Addin x64: Microsoft.MediaCenter.Guide" Get error for two days now. Tried different browser and machines. Is it working for you? Any suggestion? URL: http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/70189e0e-cf6b-4a36-94e8-399e09812614

How to open a word document,excel sheet in web browser?

I want to upload a word document and excel document and then i want to view that document on the browser itself using asp.net and c#. How i can do this. Please send me proper code and explanation if possible.

ItemAdded fails after Microsoft.Office.Word.Server.Conversions.ConversionJob was completed

Hey, I defined a ConversionJob from doc to pdf inside and the doc-file is located in a  document library and the job goes through without any problems. The pdf is created as expected. However if I try to catch an ItemAdded event the debugger starts every time the ConversionJob is finished and if I agree to debug the problem the debugger proceeds after the first time I hit F10 no matter how much code is located in the eventreceiver. The "error" seems to occur in the first line of my event receiver no matter what's in that line. If I got something like "string test = "text";" the debugger will come up anyway. I'm really confused by this behaviour and I hope somebody has worked with ConversionJobs from Word Automation Services before.

Extract Word document & Convert those extracted pages to images using Microsoft.Office.Interop.Word

You cannot vote on your own post 
Hi Everyone.

I need to extract word document into number of pages and convert those pages into images by using Microsoft.Office.Interop.Word, can anybody tell me how i can do this?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend