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 7593157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:05:47+00:00 2026-05-30T21:05:47+00:00

I have a windows c# application that uses WebBrowser Control to navigate to a

  • 0

I have a windows c# application that uses WebBrowser Control to navigate to a webpage. I use WebBrowser.Print() to silent print this web page. Now i get some Java Script errors while printing. Is it possible to suppress these.
webBrowser1.ScriptErrorsSuppressed = true; doesnt seem to work as these errors occur only when printing the webpage.

Thanks,
Rajee

  • 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-05-30T21:05:48+00:00Added an answer on May 30, 2026 at 9:05 pm

    I don’t know about c# actually, but generally speaking web browsers report errors into the console only when the error event has bubbled up the DOM all the way up to the window while not being handled on its way up. If you bind a Javascript handler to "error" and prevent its further propagation, it then won’t reach the document-bound default handler and supress all further errors from being reported into the console.

    This is the simplest Javascript example:

    window.onerror = function(){
        // Returning true informs the browser,
        // that the error has been taken care of
        return true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows application that uses a .NET PropertyGrid control. Is it possible
I have an application which uses Webbrowser control to navigate to a few vendor
We have a Windows Forms application that uses a (third party) ActiveX control, and
I have an web application that uses windows integrated security. I also have a
Scenario: I have a web application (SnapshotServer) which uses a WebBrowser control to take
I have a WPF windows application that uses the ms ribbon control for the
I have a page (view) in my Windows Phone 7 application that uses the
We have created a C# windows form application that uses an ActiveX control to
I have a Tree View control for a Windows Application that uses the CheckBoxes
I have a Windows Workflow application that uses classes I've written for COM automation.

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.