File Open Issues - document library pdf file to open in new browser window

Hi
I have a requirement to open the document library containing pdf file to open in new browser window. So far I have tried following steps but could not get it to work.
1. Changing Document library advance setting to open the document in browser (have tried others as well).
2. SharePoint web application setting changed as Permissive instead of Strict. Here the pdf file opens in browser but redirect from document library instead of new window(Also tried adding Target=”_blank” and no change).
3. Executed the powershell script to adding MIME type to see if it works but no change.
$webApp = Get-SPWebApplication http://SharePointSite
If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf")
Write-Host -ForegroundColor White "Adding PDF MIME Type..."
$webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
$webApp.Update()
Write-Host -ForegroundColor White "Added and saved."
Else
Write-Host -ForegroundColor White "PDF MIME type is already added."
4. Open the Doc library and modified ALLItems.aspx to add Target= “_blank”
5. I have already tried solutions suggested in the link:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/530e2ea1-d77d-491c-935f-04f536e439a5/open-a-pdf-document-to-a-new-browser-in-the-document-library-web-part?forum=sharepointadminlegacy
http://mindsharpblogs.com/todd/archive/2005/08/16/654.html
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7b6091df-4657-4799-ba02-259ebd7e4b7c/pdf-doesnt-open-in-document-library?forum=sharepointadminlegacy
Appreciate if there are any working solution from any of you. Many Thanks

I found a solution which works only in the development. No idea when I compared, Browser MIME type is enabled, STRICT browser type is configured for web application. on the document library advance setting, default to open in new browser. Both configurations
are identical but I am able to open pdf file in new window in my developing using jquery script
http://blog.ithinksharepoint.com/2011/02/21/open-pdf-files-from-a-document-library-in-a-new-window/ but the same does not work on production server :(
Any help experts?
Thanks

Similar Messages

  • Sharepoint 2010 document library pdf files are storing in browser cache when it is opened in browser

     i have sharepoint 2010 site which consists of document library  with pdf files if we click on pdf file it will open in browser .But the thing is it is storing in browser cache  so i need to restrict that pdf to not store in browser cache.
    A,ny suggestions please

    Hi,
    We can use jQuery plugin to open the PDf file in browser.
    The following link for your reference:
    http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Download blob as pdf. Display inline in new browser window

    I am using the standard functionality of loading blob data, using a browse/upload item, and retrieving blob data using a report on a blob column. One of the settings when setting up upload and retrieval column attributes is called "CONTENT DISPOSITION". If I set it to "INLINE" the file downloads when clicking the "DOWNLOAD" link and displays in the appropriate viewer, e.g. for PDFs it's the browser window. How do I get the PDF file to display in a NEW browser window so the user does not have to leave apex?
    Paul P

    Alternatively, do pdf's already render in the browser window?
    http://www.mydigitallife.info/2007/06/17/disable-pdf-from-opening-in-web-browser-ie-firefox-opera-safari/
    Trent

  • Opening Document Library PDF in a New Window (Sharepoint 2013)

    Hello,
    I have numerous PDF's in a document library. When the PDF opens in the browser, the PDF's contain links to various other sites; however, when the user clicks the link on the PDF from the document library, the link opens in the same window as the PDF. I would
    like the link to open the PDF in a new browser window.
    I have searched Google but cannot find anything for SharePoint 2013. We are hosting our SharePoint on the Office 365 package.  I found one solution that is repeated on many forums, but I do not see the "Convert to XSLT data view" anywhere
    in SharePoint designer 2013. The solution states:
    "Edit the document library in SharePoint Designer.
    1. Open the site in SharePoint Designer and then open the document library allitems.aspx.
    2. Right-click the document library web part and select “Convert to XSLT data view”.
    3. Locate the name column, you will see this tag “<A onfocus="OnLink(this)" HREF="{@FileRef}"….. ”, add “target=”_blank”” in tag.
    4. After this, the documents will be opened in a new window."
    I do  see my allitems.aspx and can open that with a text editor. The contents of that file are:
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"><SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server" />
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><SharePoint:ViewIcon Width="145" Height="54" runat="server" /></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=32" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
    <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    did you try this one?
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/71b24f4b-570a-48fa-9ec3-91073eafaebd/open-pdfs-in-new-window?forum=sharepointadminprevious
    or trying to use the content editor web part...
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    try this solution...check the column which having the clickable link.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/99e9559a-da76-4722-982c-882b3e4181c7/hyperlink-column-type-open-in-new-window
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
    a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
    I have referenced for possible solutions:
    http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
    http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
    Here are the steps I have done to try to get the .rpt files to open:
    Added the Crystal Report extension .rpt as a MIME type
    Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
    Installed the 64-bit Crystal Reports runtime
    I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
    I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
    I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
    Thank you,
    Alex

    We are having the exact same issue, has anyone resolved this yet?

  • Uploading documents to show in new browser window

    Please can you let me know when we will have the option to upload files (eg Word, Excel) and display these items in a new browser window? At the moment the only way round this is to load a file and then create a URL link to this file.
    Thanks

    Hi Jan
    Add your document (eg Word) as a File item type. Then view the document by clicking on the display name. Highlight the URL and copy it.
    To create a URL link to this document select Add Item and choose URL. Paste the URL you have just copied from the original document into the URL field - fill in the other primary and secondary attributes - choose to open document in new browser window.
    Go back to your original Word document and hide it from view.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan:
    Katie,
    can you tell me how to make such an upload an create a link to it ? That's exactly what I'm trying to do ...
    Thanks,
    Jan<HR></BLOCKQUOTE>
    null

  • Authentication prompt issue when opening an office file in a document library with read permission for domain users

    An user as part of the domain users tries to open an office file from a document library but he got an authentication prompt asking him to authenticate. Domain users has only access to this library and not to the whole site. This uses to work in SharePoint
    2007 without any problem but not in SharePoint 2013, we didn't have a workflow on SP2007.
    Domain users has read access to only this document library in the site, but he shouldn't get an authentication prompt since he is part of the domain users and he is not trying to modify the document, he can open the document but gets two prompts, he can't
    also see the list using explorer view since nothings appears using the explorer view.
    Now, when opening the file, we can see..Updating Workflow Status, but we don't have any workflow working on this site or library, event any feature related to workflow.
    If we go to the event viewer in the server, we find this information,
    I also checked this thread but I couldn't find this scenario.
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/91bc770b-bb70-4885-a4ad-a243edb88753/event-id-8026-workflow-soap-getworkflowdataforitem-failed-doc-library-no-workflow?forum=sharepointgeneralprevious
    I also created another list with the same permissions and using other office files but got the same behavior.
    Now, we have migrated this site from SP2007 to SP2013.
    Any ideas?

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Trouble opening pdf's - I have received several pdf's from a friend via e-mail (Thunderbird). Some of them open just fine but others give me the message: "There was an error opening this document. The file is damaged and could not be repaired."

    Trouble opening pdf's - I have received several pdf's from a friend via e-mail (Thunderbird). Some of them open just fine but others give me the message: "There was an error opening this document. The file is damaged and could not be repaired." My friend made sure that the files in question opened without issue on his computer (a PC). Further, I was able to open one of these "damaged" files on my Android phone, but I cannot open them on the Macbook Air. Any help would be greatly appreciated.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How to Auto Check-in .pdf Files in a Document library(after Drag & Drop) - sharepoint 2013?

    Hi,
    Once I Drag and drop the .pdf documents in a document library files get
    checked out automatically.
    I want the files to be checked-in automatically once they are dragged and Dropped.
    Please note : I am able to do the above things with .doc (world files) but not with the
    .pdf files.
    I have provided all the default values. Tried all the below options Still no success :-( 
    Require Content Approval for submitted items ?    NO
    Create a version each time you edit a file in this document library ? No visioning
    Require documents to be check out before they can be edited? No
    Anyone Come across this issue.??
    Regards, 
    Pavan.

    Hi, 
    I found the problem(Not the solution).
    I have set the default values from Column default value settings,
    the default values are getting set to the columns but the file still in checked-out mode.
    If I put the defult values to Library columns directly/Site column directly , Its working fine. - We found this work-around. 
    But still the issue Exists why its not working when I set Default values from Column default value settings
    and try to drag and drop documents. :-( 

  • SSRS PDF Export. There was an error opening this document. This file is damaged and could not be repaired

    Hello,
    I just experienced this problem, and was able to successfully mitigate.  I wanted to share my experience and Solution. 
    The problem started with the following error after succesfully exporting a PDF Document.  "There was an error opening this document. This file is damaged and could not be repaired."
    This is only applicable if you can still export and open SSRS Reports to other formats. Go to the Log files of the SQL Instance. In my particular case I used the Default MSSQL instance:   C:\ Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting
    Services\LogFiles  
    The Folder will begin with MSRS (SRS is for SQL Reporting Services)
    Sort the files by date modified and check for the most recent log file: ex.  SQLDmpr0000.log  The 0000 will be the incremental amount of errors you have experienced in SRS. Check for the following error:
    "System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
    Below is a sample from the log. 
    reportrendering!ReportServer_0-1!1b78!02/07/2012-11:56:03:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException:
    An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.DllNotFoundException: Unable to load DLL 'T2Embed': Access
    is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.TTGetEmbeddingType(Win32DCSafeHandle hdc, UInt32& status)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.CheckEmbeddingRights(Win32DCSafeHandle hdc)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.ProcessFontForFontEmbedding(PDFFont pdfFont, Dictionary`2 embeddedFonts)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.EndReport()
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render(Report report, NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream
    createAndRegisterStream)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo,
    NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo,
    NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderFromOdpSnapshot(IRenderingExtension newRenderer, String streamName, ProcessingContext
    pc, RenderingContext rc)
       --- End of inner exception stack trace ---;
    If you notice the error states that T2Embed.dll access is denied. In my case this due to a hotfix installed by Microsoft: 
     MS11-087: Vulnerability in Windows kernel-mode drivers could allow remote code execution: December 13, 2011
    Be advised, in order to fix your problem and render pdf's, a vulnerability shall be created.
     To fix this issue and allow the export to PDF work correctly, you must give the system Read/Execute Permissions, and Built-in\Administrators Full Control. 
    Go to Windows\System32 and find the T2Embed.dll Go to Security and modify the permissions as listed above. Do the same to the T2Embed.dll in the SysWow64 folder.
    Restart Reporting Services and you will be able to export to PDF. 
    Best Wishes! 
    Mariano
    www.lucontech.com 

    I'm not convinced this is the exact cause of the issue.  I will check my log files to see if I find anything like what you described.  However, I get this error when a particular user tries to do a "print preview" from a custom button.  The
    code builds a ReportViewer object, sets the ReportPath, etc.
    The reason I'm not convinced is because we have a separate reports page that has the report viewer embedded into it.  If the user generates the report that way and exports to PDF, Word, etc...the user can generate the file and be on their way.  As
    soon as the user clicks our "Print" button on the page without the ReportViewer embedded, the above mentioned error occurs.  
    UPDATE: Perhaps we have a different problem since my issue is from a custom button.  I found the solution
    here and confirmed the solution with the customer.  It had to do with the code using Response.Flush() instead of Response.End().
    One thing I noticed before I implemented the change: When you would close the PDF, it would ask you to save changes to the PDF.  After implementing Response.End() instead, that prompt went away.  No doubt it has to do with the differences between
    how Response.Flush() and Response.End() handle the stream returned.
    Anyway, posting in case someone has the same issue.

  • Exporting PDF files from SSRS 2012 - "There was an error opening this document. The file is damaged and could not be repaired"

    Good day
    I have the situation where we are exporting PDF files from reporting services in our website. 
    When dividing the data into sections, the report exports perfectly, but when exporting the entire set and trying to open the file, we get the following error in Adobe Reader:
    "There was an error opening this document.  The file is damaged and could not be repaired"
    We tried to repair the file, no luck.  We tried to use different PDF readers, no luck
    We then checked the file sizes.  When exporting the subsections, each section exports a file of about 2mb. 
    When exporting the entire set, the file is about 1.3mb. 
    Adding all the sections together gives me a rough estimate of 40mb.
    Exporting to TIFF works beautifully and returns a file of 41.5mb. Word and Excel formats also work well, only issue there is the page numbering and formatting.
     The problem we have is the clients are adamant about having it in PDF format.
    Any advice please?

    This was one of the temporary suggestions I gave the client...
    Unfortunately they do not like this as the page numbering and formatting in Word does not appear right.  We are talking about over 1300 pages.  I can't expect them to change the formatting with each export.  Additionally,  the data is
    constantly changing and each client has their own data.  The clients export the reports randomly.  I therefore can't post the reports back onto the server.
    Thanks for the speedy response though

  • When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    You need to get a new copy of the PDF.

Maybe you are looking for

  • How to read from a file line by line

    Hi I am new to using LabView and was wondering how I could read data from a text file one line at a time and display this data one line at a time as well. I tried looking through the Reading from Text File . vi example but that just seems to be readi

  • Sendmailjpkg.sendmail -  550 5.7.1 Unable to relay

    Hi to all, Oracle 10g database. We have an application that sends emails (only with one email address), with sendmailjpkg.sendmail, We've recently installed an exchange 2010 server, and in doing so we've changed the relevant DNS/MX records to point t

  • Multiselect drag and drop in ADF

    Hi, Is there any way I can implement multi select drag and drop in ADF. Currently I have a UI where I have several cards. Each card is built using panelStretchLayout and I can drag and drop each card. The requirement is to be able to select multiple

  • Verify error

    Hi, I am getting the following error when i try to invoke a remote method.My remote class have more than 300 methods. what is the root cause of this error and how can i rectify this error? can anyone help me on this? Ananth <Error thrown by rm i serv

  • Missing features in SWF Handler

    Hi, I'm using XMP to extract and update metadata in various file formats (pdf,swf,jpeg,...) and when using the swf handler, i found that it was missing some features like : When a swf file is compressed (magic num. "CWS"), the content is expanded (de