none
Pop up when trying to open files. RRS feed

  • Question

  • I’m at my wits end here and would like to know if anyone has encounterd this problem.  I have this issue where if I try to open any file that ends with a .pdf or .txt or any other file that is not an MS Office type document in SharePoint I get prompted with a dialog box that states:

     

    You are about to open:

                    Name: somefile.pdf

                    From: <ServerName>

    How would you like to open this file?

                    Read Only

                    Edit

     

    Some files can harm your computer.  If this information looks suspicious, or you do not fully trust the source, do not open the file

     

    Here are the steps I already tried to resolve it:

    1.  Added my sharepoint site as a Trusted sites in Internet Explorer

    2.  Went to Folder Options -> File Types tab -> Selected the pdf extension -> Made sure that 'Confirm open after download' and 'Browse in same window' is unchecked.

    However, I still get the dialog box for the .pdf and .txt files.  This however is not an issue with the MS Office documents and I can only open only .doc, .xls and .ppt files fine without the dialog box appearing on the screen.  
     
    On the client PC there is an installation of Microsoft Office 2003 and 2007.  I uninstalled 2003 but I still get the same issue with the pop up window. 

    Any thoughts on what might be causing the issue?

     

     

    Wednesday, October 21, 2009 12:51 AM

Answers

All replies

  • The dialog box that you're getting is by design.  There is a JavaScript function called DispEx specified in Core.js file that fires when you click on a document link (see this post for more details:  http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/ccf8b7b6-168e-4cf8-9a33-35fe49ea89ae).  With Office 2007, you won't get the prompt for Office documents as long as the sharepoint site is added as a trusted site. PDFs are not natively supported file types in WSS/MOSS, so you'll get the prompt for PDF docs.

    Check out this post:  http://www.wssdemo.com/Blog/archive/2008/05/10/sharepoint-document-libraries-and-users.aspx.  It dives deeper into the mechanics about what's going on when a file is downloaded from SharePoint and also offers some suggestions.
    Andre Galitsky, MCTS, Lexington, KY -- My SharePoint Blog: http://www.sharepointnomad.com
    Wednesday, October 21, 2009 4:06 PM
  • Moving the site to trusted sites actualy stops the JAVAScript function DispEx from running. You can test this by adding an alert("hello"); in a non production enviroment.

    There are a number of reasons to keep your SharePoint sites in the local intranet zone so you can AT YOUR OWN RISK comment out the following line.

     

    /*return DispDocItemEx2(ele, objEvent, fTransformServiceOn, fShouldTransformExtension,
    		fTransformHandleUrl, strHtmlTrProgId, iDefaultItemOpen, strProgId, strServerFileRedirect);*/
    Wednesday, June 2, 2010 1:47 PM