Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7731587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:31:03+00:00 2026-06-01T06:31:03+00:00

due to some unavoidable reasons I need to disable Google Chrome’s Chrome PDF Viewer

  • 0

due to some unavoidable reasons I need to disable Google Chrome’s “Chrome PDF Viewer” and enable the adob PDF viewer. I want to do this from C#.net and asp.net Code. I know it is not possible directly as it is related to change setting’s on a client machine but I am ready to ask permission from user if s/he wants to disable the default viewer.

The reason behind this work is that all my PDFs created in iTextSharp are not functioning properly in Google Chrome due to Chrome’s default reader. Not all user’s can find and disable the plugin manually, hence I want it to be done by code. I need to know that how we can disable the default PDF viewer. AFter this my problem will be solved automatically. pls give me any suggestion about code

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:31:04+00:00Added an answer on June 1, 2026 at 6:31 am

    Google chrome plugins doesnot change the programming way so just inform to the client like a pop up message

    <script type="text/javascript">
    function CheckPlugin()
    {
    var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
    function findPlugin(ext) {
    var thisExt, findExt;
    for (var n = 0; n < navigator.plugins.length; n++) {
    //alert("n value"+ navigator.plugins.length);
    for (var m = 0; m < navigator.plugins[n].length; m++) {
    //alert("m length:"+navigator.plugins[n].length);
    thisExt = navigator.plugins[n][m].description.toLowerCase();
    // alert("this exten"+thisExt);
    findExt = thisExt.substring(0, thisExt.indexOf(" "));
    //alert("findexes"+findExt);
    if (findExt == ext)
    return (true);
    }
    }
    return (false);
    }
    
    if (is_chrome ==true) {
    //alert("chrome browser");
    if (findPlugin("acrobat")) {
    //alert("Adobe Acrobat pdf viewer");
    return true;
    }
    else {
    
    alert("please disable the chrome pdf viewer and enable the Adobe Acrobat PDF viewer \n Please follow the steps:\n 1.Open the new tab 'chrome://plugins/' type the Address. \n 2. Click the Enable link in 'Adobe Acrobat' field. \n 3. click the Disable link in 'Chrome PDF Viewer'. \n 4. Close the tab and you can open the PDf files in chrome browser.");
    return false;
    }
    }
    else {
    //alert("not chrome");
    }
    }
    
    </script>
    

    In hyperlink write like this

    <asp:HyperLink ID="HyperLink1" runat="server"
    NavigateUrl="~/PDFFiles/AGENCY PROFILE APP.pdf" onclick="return CheckPlugin();">Agency profile app</asp:HyperLink>
    

    I think it is more help full.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some issues with my code. This is probably due to some design
Due to network or some other reasons, some sites do not have their css
Due to some caching issues, I need to explicitly bypass the cache, for a
I need to run my development through nginx due to some complicated subdomain routing
Due to some requirements on speed, we need to some computation in-place on internal
I have a feeling this is due to some sort of rendering optimization or
Due to some awkward legacy code, I need to pass some non-English text around
I thought this problem may be due to some strange path issue; however, the
Due to some project, I need to work on Galaxy Tab Emulator on my
Due to some firewall issues, we need to do FTP using active mode (i.e.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.