Office Document open in browser

Hi, I am trying to open an office document directly in the browser, but IE (V8) always open the modal dialog to open or save. I have tried differents ways and read almost every threads about this topic, some of the solutions that I tried are:
- Modify Header to inline:
response.setContentType ("application/msword" );
response.setHeader ("Content-Transfer-Encoding","7bit");
response.setHeader ("Content-Disposition","inline;filename=" + vo.getFileName());
This solution in many ways.
- Use Iframes:
"a target="myFrame" href="http://www.polityka-spoleczna.lubuskie.pl/pl/content/download/92/350/file/plik%20testowy1.doc">LINK DOC</a>
<iframe name="myFrame" >"
- Use ActiveX
function loadworddoc(){
doc = new ActiveXObject("Word.Application"); // creates the word object
doc.Visible=true; // display Word window
doc.Documents.Open("C:\\temp\\doc1.doc"); // specify path to document
I know that this topic has been treated in other posts but none of these has solved my problem, I dont know if is because de IE Version (8), I will appreciate if someone con help me with this issue.
It doesnt matter if the solution implies activex or some third party API free or commercial.

response.setHeader ("Content-Disposition","inline;filename=" + vo.getFileName()); This is the line that causes it to open in a browser.
The problem here is that you are using a link to a document...or it appears that way. I dont have any experience with a link to a direct document.
What I've always done is in the Java class I read the document into an object, then write that object to the ServletOutputStream.
So something like this:
1) Set Headers
2) Get word document into some sort of Java object
3) Write that object to the ServletOutputStream
My documents are mostly built on the fly, so hence I need an object anyhow. If you store your files in the database, you will need one too.
I personally would attack it the same way if my files were on the OS as I'd never want a direct link to a physical file. Rather I'd want a link to a page which opens a file.
Edited by: ForumKid2 on Oct 13, 2010 12:40 PM

Similar Messages

  • Turn off Office Documents opening in Browser

    I've gone into Site Settings/Advanced Settings and set it so that Office documents will open only in the client application and NOT in the Browser, but it still tries to open them in the browser.
    What am I missing?

    Hi Elmo,
    Pls check the below
    Navigate to site collection feature and search for "Open Documents
    in Client Applications by Default" and activate the feature.
    if you want to change only for particular document library then from document library settings ->General settings-> advance settings->under Opening
    Documents in the Browser section->Open in
    the client application.
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Why does mountain lion "bunch up" all my microsoft office documents that I have open when I hit f3? When I had snow leopard for example, if i had 4 or 5 different microsoft office documents open at the same time I could hit f3 and easily pick one of them

    Why does mountain lion "bunch up" all my microsoft office documents that I have open when I hit f3? When I had snow leopard for example, if i had 4 or 5 different microsoft office documents open at the same time I could hit f3 and easily pick one of them.
    Notice how in the photo, I can't identify which MS office document I would like to switch too. Perhaps since the Dashboard and Desktop windows are at the top of my screen now Apple doesn't let you have all the applications take up the full screen and be sized individually so that you can have a better idea on what to pick.
    I like the idea of grouping to an extent... If you have a bunch of random things it was hard for me to decifer between what was safari, chrome, or word. But now that they grouped them like this, if you have multiple pages of one program running, you can't switch between those pages easily like before.

    If I wanted to open any of my Applework documents I had to open them one at a time and resave them with pages. This could take weeks.I have 1000s of apple work documents.
    You don't have to open and re-save every AppleWorks document you have right now. Just wait till you need one, then do it. The documents aren't going anywhere.
    Am I dealing with Microsoft? This was a BIG surprise to me that Apple would release an OS without testing all programs.
    Frankly, it is not Apple's responsibility to ensure compatibiltiy with every piece of software available for OS X. That is the responsibility of the software vendor. Lion has been available to developers for several months before it's release, so Microtek had plenty of time to update their software. Yet they did not. How is that Apple's fault? I think Apple was very generous to give you a refund for Lion.
    I'm not trying to belittle your frustration but I do think your ire is misplaced.

  • Is there any way to view full pdf and office documents opened in safari? they just open partically if they are bigs

    is there any way to view full pdf and office documents opened in safari? they just open partically if they are bigs

    Drag them to your iTunes library.  Download the free iBooks app.  Select the PDFs you want too sync in the iTunes books pane.  The iBooks app will show your books collection or your PDFs collection as you select.

  • Documents Open in Browser Issue

    Hi All
        I have strange issue, word document open in browser as expected. But a read permission user open up the document in browser and able to edit and save it.  
    Please advice
    Thank you
    Joe

    Hello joe_aro-SP,
    looks like your user has more permissions than needed. You could try to remove the user from User Information List (<a href="http:///_layouts/15/people.aspx?MembershipGroupId=0">http://<your_site>/_layouts/15/people.aspx?MembershipGroupId=0)
    and grant him/her ONLY read permissions (add it to the SharePoint group with read permissions).
    Another options is to create a new permission level (via Central Admin->Manage Web Application, select the web application and choose "Permission Policy"). When creating the permission policy select "View Items" under List permissions.
    Create a new SharePoint group and assign the newly created permission policy. Inside the permission policy you could add accounts that could Only view items for the site collection.
    Let me know if this one is helpful.
    Regards

  • SAP Office Document - open in customcontainer

    HI,
    i try to open to SAP Office Document in "inplace" mode in my own dympro.
    Therefore I have an reference of a CL_DOCUMENT_BCS class. There is an interface with a if_document_display_bcs ~ display_outplace method and a if_document_display_bcs ~ display_inplace method. The first one works very well. But the second one does not seem to do that.
    I want to view this document in a custom container of my screen l Is this possible?
    kind regards
    Micha

    response.setHeader ("Content-Disposition","inline;filename=" + vo.getFileName()); This is the line that causes it to open in a browser.
    The problem here is that you are using a link to a document...or it appears that way. I dont have any experience with a link to a direct document.
    What I've always done is in the Java class I read the document into an object, then write that object to the ServletOutputStream.
    So something like this:
    1) Set Headers
    2) Get word document into some sort of Java object
    3) Write that object to the ServletOutputStream
    My documents are mostly built on the fly, so hence I need an object anyhow. If you store your files in the database, you will need one too.
    I personally would attack it the same way if my files were on the OS as I'd never want a direct link to a physical file. Rather I'd want a link to a page which opens a file.
    Edited by: ForumKid2 on Oct 13, 2010 12:40 PM

  • Microsoft office documents opens as read only in sharepoint 2010

    Hi all,
    We are facing strange issue with editing microsoft office documents in sharepoint. When we open the documents for editing it opens as read only and when we try to save the file it displays message as could not save the file the document is read
    only..
    Can anyone help to resolve this issue..

    Hi Manjunath,
    Did the
    dialog of "How would you like to open this file:Read only/Edit" popup when click the Word document?
    Please also check if it is related to Site collection Quota exceeding the allocated limit per this similar post,
    http://sharepoint.stackexchange.com/questions/29689/sharepoint-2010-opens-document-in-read-only-mode
    Thanks
    Daniel Yang
    TechNet Community Support

  • Office documents

    After installing CF8 and migrating our existing web sites, MS
    office documents open very slowly. Has anyone else seen this
    behavior?

    Once your device is upgraded to OS 4.5, you will get DocumentsToGo as part of the upgrade... includes Word and SlidesToGo, and THEN, updating the application you will get SheetsToGo.
    If you need help or direction, please post back your exact model BB Curve.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Collaboration on a Star Office Document

    Hello everyone,
    how can several people work on the same Star Office document (or MS Office document opened with Star Office 8), providing for the "read-only" mode for all but a single user? Is there any option allowing to use a document as a "read-only" (and even better - password-based, like in MS Office)?
    Thank everyone for help.
    Mike Faynberg

    Hi
    You can share files from any location on any Mac. Where you end up storing them depends on who you want to allow access to your computer. Let me give you two examples (although there are more configurations you can use).
    A - If you are the only person in your office, and have both a MBP and a Mac Pro, you can turn on File Sharing on either computer, and from the other computer, locate the computer in the sidebar of the Finder, click "Connect As", and enter your other Mac's admin name and password. You will then be able to connect to the entire hard drive. You can therefore share files from any folder across the network.
    B - If you share the office with someone else that you don't want to give access to your whole drive or even your user files, but want to share only certain files, turn on File Sharing, and store the shared files in your Public folder. When the other person clicks on your computer name in their Finder sidebar, they'll automatically see your Public folder (they don't need to use "Connect As", since it will automatically log in as a guest). The possible disadvantage of this method is that you must store any needed files in "Public" before the other person can get to them.
    You turn on File Sharing in System Preferences, under Sharing. As I say, there are other sharing possibilities, but I've given you the two extremes of the spectrum.
    You might also want to look at Dropbox, which is a third-party solution (free for up to 2GB). It is best for individuals with multiple computers, or within a small company. It gives you a single shared folder called "Dropbox" which is automatically synced across all computers on which you have installed the software with your account.
    Hope that helps.
    Matt

  • How to disable "Edit in browser" button in office documents that open in browser

    guys,
    Environment:
    sharepoint 2010
    installed Office Web app
    i installed office word apps and integrated it with sharepoint 2010 and all the office documents now open in the browser. but this also give the qualified users access to the button "Edit in Browser" while viewing the document in the browser (and if the user
    selects to do this and saves then it creates an office 2010 document in the document library), is there any way to disabled the "edit in browser" option completely for all the users, i dont want any users to edit documents online.
    thanks
    sameer.

    Ok so i came up with hack to 'hide' the edit link ..
    You need to edit the css file here on your server
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\INC\1033\WordViewer\WordViewer.css
    and add this 
     div [title="Edit in Browser"]{display:none};
    And to hide the edit capabilties for Powerpoint app - add this jquery
    $('iframe[id*="MSOPageViewerWebPart"]').ready(function () {
            $('iframe[id*="MSOPageViewerWebPart"]').contents().find('.ms-cui-ctl-medium').each(function () {
                if ($(this).text() == "Edit in Browser")
                    $(this).hide();
    Obviously not great solutions, but works for now.

  • Different behaviour between IE6 and IE on opening Office documents via KM

    Hi all,
    we're in the process of rolling out Internet Explorer 7 (IE7) and noticed something unexpected when opening non-html documents from a KM navigation iview. When clicking on the links in the ivew the documents are all opened in a new window because the hyperlink / href contains "target=_blank". When the document itself is for instance an Excel document, the browser will ask wether you want to open the document or not. When you choose to open the document, Excel launches and the blank IE6 window is closed in the background. When the user is done with the document he or she will return to the portal screen.
    This nice behaviour does not occur with IE7. The blank window remains open so when the user closes the Office document they are looking at an empty IE7 screen.
    Is there any way to fix this by customization or even by code change? It seems to me that this is more a SAP issue because for all HTML pages and for all documents that have IE plugins such as PDF'syou want to open a new window but for the others you want only the application to be lauched, not an empty IE.
    Message [3141588|https://www.sdn.sap.com/irj/sdn/thread?threadID=147594&messageID=3141588#3141588] seems to deal with the same problem and got a somewhat disturbing answer.
    The resource rendering parameter rndOpenTargetType does not seem to help see [Help.sap.com|http://help.sap.com/saphelp_nw70/helpdata/EN/87/3d48475ee8bd448c4031aa98d90524/frameset.htm]
    Marcel

    I found the solution on another site, superuser.com, so I can't claim the solution as my own, but it worked for me. Kent Ng says: 
    I face the similar issue with Excel 2003. If you have installed Skype-Click-to-Call, just removed it to resolve this issue.

  • SharePoint 2013 cannot view PDF documents in mobile browser with office web apps

    Hi,
    I'm receiving the following error when viewing SharePoint 2013 PDF documents in a mobile browser after clicking on the filename:
    "Viewing of .pdf files has been disabled in Microsoft Word Mobile Viewer. Please get in touch with your helpdesk."
    My Question
    Is viewing PDF documents in mobile browsers with Office Web Apps SP1 actually supported?  If so, how can I enable it?  I've already have pdf viewing working in non-mobile browsers. Word documents open just fine on mobile browsers too.
    I'm getting conflicting answers for pdf mobile viewing support from various sources:
    You've got Microsoft toting that they've added in PDF viewing on any device for Office Web Apps
    http://blogs.office.com/2013/07/03/pdfs-in-the-word-web-app/
    A MS support person saying saying it is not supported
    http://blogs.technet.com/b/office_web_apps_server_2013_support_blog/archive/2013/12/31/enabling-pdf-previews-in-document-libraries-with-office-web-apps-2013-in-sharepoint-2013-open-link-does-not-work-from-preview.aspx
    Another person implying that it should work because you can disable pdf browsing for mobile browsers only
    http://blogs.technet.com/b/office_resource_kit/archive/2013/07/24/control-whether-pdfs-open-in-word-web-app-or-the-default-pdf-reader.aspx
    What I've tried
    When I started looking into this there was a mobile WOPI entry:
    Application     : WordPdf
    Extension       : PDF
    ProgId          :
    Action          : mobileView
    IsDefaultAction : False
    ServerName      : 20SP8
    WopiZone        : internal-http
    I tried experimenting with tweaking this binding by changing the DefaultAction to true, and even removing it altogether via:
    Get-SPWopiBinding -Action "MobileView" -Application "WordPDF" | Remove-SPWopiBinding -Confirm:$false
    But I still get the same message.
    I removed all the WordPdf bindings and re-added them via:
    New-SPWOPIBinding –ServerName "<myserver>" –Application "WordPDF" -AllowHTTP
    No dice.  In fact the mobileview binding doesn't even come back... but I guess that is a different issue altogether.
    Version
    SharePoint 2013 (SP1)
    Office Web Apps Server (SP1)
    Farm Setup
    Internal facing only
    2 front end servers, 1 app server, 1 office web apps server

    I think the PDF support, if it exists, in only in Office 365. Always remember that the Office 365 and on premises versions will never be in sync. On premise is updated using periodic service packs and Office 365 has continuous updates. (I've heard every
    10 days.)
    In my Office 365 / IE 10 tests, the PDFs open in the browser's default PDF viewer, in my case FoxIt Reader. So I can't prove one way or the other about support in Office Web Apps.
    Mike Smith TechTrainingNotes.blogspot.com

  • Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications

    Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications        
    One of our Managers encounters the error 'A problem occurred while accessing the Office document cache.  Do you want to repair this problem?'
    Then When he says yes it give a warning that the cache will be backed up and replaced
    Then it says 'A new office document Cache has been created...'
    Then it loads this cache with an error
    Then After all that the next time he tries to open the document it says  is encountered "Sorry, we couldn't open 'URL."
    We have Reinstalled office 2013 on the users PC repaired the cache numerous times
    Followed -  http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
    Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
    Repair installed office 2010 and office 2013 again
    The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
    And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
    Office 365 said
    Reply by Rachel Zhang MSFT Support
    Hi Alex,
    From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
    the support engineers will help you with the issues about Office client:
    Microsoft Office Community:
    http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
    Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
    Microsoft Office Community:  
    Feel free to sign in to the Office community and click to post the question with the relevant information.
    Office team said
    Hello Alex,
    Thank you for posting your query in Microsoft Office Community.

    Check if other excel works fine
    Do you have any script\macro in excel file
    Check if all application pool on all servers are running
    both office and IE should be same build (64 or 32 bit)
    what is the error message in ULS log and Event viewer
    If this helped you resolve your issue, please mark it Answered

  • Office documents does not open in the default office application from Search Results

    1 WFE + 1 App Server + 1 server for OWA + 1 separate DB server make up our DEV SharePoint 2013 environment. We migrated many web applications from our SP 2010 environment to SP 2013 environment. Client integration is enabled and "Open
    Documents in Client Applications by Default" feature is enabled at the site collection level. OWA is enabled and working on the search results, such as showing preview.
    From the document libraries, if I open office documents like word, excel and PowerPoint, they open in the respective office applications. However, from the search results, when I try to open by clicking on the result, it opens on the browser.  I want
    OWA to show document preview but still want to open the document in the default office application. How to overcome this?
    I have IE 8.
    Thanks, Soumya | MCITP, SharePoint 2010

    Go to the bottom of the Search page, you will see a Preferences link:
    From there, you can set your preference. This is a per-user setting and as far as I'm aware, cannot be set globally.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for