.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 Word document in iframe without open/ save dialouge

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :ASP.Net
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.

View Complete Post

More Related Resource Links

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

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.

Word Web App cannot open this document for viewing because of an unexpected error.



We configured and enabled the Office Web Apps and we were able to open documents in browser. But since last week we are unable to open documents in browser.   

I am getting this error:

Word Web App cannot open this document for viewing because of an unexpected error.

I went through Troubleshooting steps on this document http://technet.microsoft.com/en-us/library/ff431687.aspx#bkmk_trblshoot and could not find the problem.

Word Web App cannot open this document due to an unknown error. If the problem persists, try opening

Word Web App cannot open this document due to an unknown error. If the problem persists, try opening the file in Microsoft Word.

Can anybody pls help me how to resolve this for which got strucked !!!!


Cheers !!


Thanks in Advance !!! Cheers !!! Praveen

Word Web App cannot open this document due to an unknown error. If the problem persists, try opening


Word Web App cannot open this document due to an unknown error. If the problem persists, try opening the file in Microsoft Word.

Hii ,

Can anybody pls help me how to resolve the above Error am getting in Sharepoint Foundation with the use Office WebApps installed on the same development server,when Opening a word document after it got created.






Thanks in Advance !!! Cheers !!! Praveen Mandalapu

Open local word document


Ok, now my last question for this day:

I want to open a Microsoft Word dot-file when the user klicks on a button in my intranet application. The dot-file is located on the harddrive of the user and executes some code in the AutoOpen() Sub.

Any possibilities to solve that issue? Using Javascript or a hyperlink?

How to open MS word document in browser window?

Hi all

Is it somehow acheivable to open a .doc - document in a browser window?

If I link a .pdf - file from the document library in left navigation menu it opens in a browser window. If I do the same with a MS Word docuemnt it opens the Word application, but I want it to open it inside a browser. Can this somehow be done?


Open word document from asp.net - toolbar not visible.



We have a scenario where the data on the web page needs to be opened in MS Word document.

For this we are using

HttpContext.Current.Response.ContentType = "application/msword"

But when we select "Open" in the popup box and the msword opens up, tool bars for msword is not displayed (Font/ font size etc.). But if we choose to save and open the saved document at that time the standard tool bar is visible.

Is there any way to display word doc with standard tool bars.


Cannot open Word document from sharepoint Shared Documents folder


Hey Every body

I have a very strange problem. Our Company has a Microsoft Office Sharepoint Server 2007 solution running as our company Intranet solution. 

We have a solution where outside users, can gain access to a workspace site on Sharepoint where diffrent people can work together on projects that involves both out side users and internal staff. 
We have a folder called shares documents here we can upload documents that we want the other memebers off this workspace too see.
The problem is that internal staff can open up Word documents directly, but the external users are not able to open up directly these Word documents. Word just sayes that that is is unabel to open up the word document.
But when the users download the documents instead it works fine.

I have tries with both offcie 2003 and office 2007 and the problem is the same. But if i try to open up these documens via Open Office the problem due not exits, then is works fine. Why does Microsoft Word have these problems?

And is it just when the external users are opening up the documents directly from the sahred Documens folder that we have this problem.

The external users are connecting to our Citrix Netscaller security solution for authenticating purpoes first, after they have been validated through this solution, they ar

EditForm.aspx submit button prompts user to open/save document.


I'm not sure if anyone can help since I'm dealing with a slightly modified Edit Form and a custom work flow, but here it goes.

I am testing a SharePoint 2010 deployment which uses our 2007 production content database. Most of the database attachment process went okay, but I'm seeing something weird now on my EditForms. Whenever a user uploads a document to a particular document library, we send the user to an edit form to collect some meta data for some custom fields. As soon as you click the submit (OK) button, the form prompts you to open/save the file, as if you were trying to open it from the within the library. Once you handle that pop up, the form is then 'dead'. It doesn't redirect you as it should and the submit/cancel buttons no longer work (yet they are active).

Here's where it gets weird(er). If you try to upload a document from within the library itself, no problem. My issue only happens when you get to the upload page via a dataview of the library from a subsite (which is just a filtered dataview with a site specific filter, nothing too crazy). The link takes you to the normal OOB Upload.aspx just as if you were to get there from the document library itself, but for some reason navigating to it from the dataview (even though it takes you to the same page with the same list ID in the query string) the subsequent editform (again, same form

Can you open a Word Document in browser


Hey again Guys,

I was playing with some files the other day and one of them was a word document. That then got me thinking whether it was possible to open thos files in my browser. Saves Opening/Saving everytime i click on a document.



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

Unable to open pdf from document library MOSS 2007


When I click on a pdf document uploaded in a document library it comes up with a blank page. 

I guess it's trying to open pdf on the browser. I turned off "Display PDF in browser " option in Adobe Preferences, but it doesn't help, same issue.

I tried other browsers too, it's the same issue.

I am able to open all other pdf files local to my machine fine.

I am using IE 8 on my machine (Windows 7) and the Sharepoint server is MOSS 2007.



Can I open the "new" menu in a SharePoint Document Library using Dragon NaturallySpeaking?


When a user, who uses Dragon NaturallySpeaking, says "new" when viewing a Document Library the default content type is selected and the associated application (e.g. Microsoft Word) is launched. This scenario is okay for Content Type selection since the Microsoft Office applications will prompt for the metadata once the file is saved.

If the user needs to create new folders in the Document Library however they need to expand the "new" dropdown menu.

What is the best way for someone using Dragon NaturallySpeaking to expand the "new" menu for a Document Library in SharePoint?

Check-out issue when opening a document from a document library when a read-only copy is open

We have an issue when a user has a read-only copy of a document from SharePoint open and then tries to check-out and edit another copy of the document (i.e. from the document library) the checked out copy is not connected to the web server. For the user it will look the same they will make edits, save and then close, but when they do so the document is not updated in SharePoint - it may be saved locally in their SP drafts, but the user will think that they have lost their version. We then get the checked out to another user error and you have to discard changes to get the document working again. Steps to reproduce this issue: * click on the name of a office doc on a Document Library * Make sure "Read Only" is selected and click "ok" * Minimize open document * click on the same file on the Document Library * Make sure "check out and edit" is selected and the "Use my local drafts folder" checkbox is ticked. Select OK. * Edit document and press save. Changes are never saved back in SharePoint, they are only on the local draft. We are using MOSS with SP2. Clients are on Office 2003 and 2007 Is this normal behaviour? Is there anything that can be done to prevent this from happening?

When try to open a folder in a moss 2007 document library in Explorer View, the folder does not open


When try to open a folder in a moss 2007 document library in Explorer View, the folder does not open.

I am using IE7 and the path of the folder does not contains more than 100 characters.

Also it opening on few on the machines which has IE7.


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