pdf in a browser

Posted on 2011-10-24
Last Modified: 2012-05-12
Right now, i have a function which returns a pdf and let user save or open it from a webpage.
 HttpContext.Current.Response.ContentType = "application/pdf"
 HttpContext.Current.Response.AppendHeader("content-length", data.Length.ToString())
 HttpContext.Current.Response.AddHeader("Content-Disposition", "filename=temp.pdf")
i want to have a "View/Print" button on the page, which will open it in a browser and user can print or save from there as well.  What happens if PDF plugin is missing?
Question by:singsunn
    1 Comment
    LVL 16

    Accepted Solution

    If adobe reader is not installed the pdf could not be viewed. Verify whether it is installed using the code mentioned in below link. If not, alert the user.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
    Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now