Example #1
0
        public WinFormHtmlDocumentLoader()
        {
            myBrowser             = new WebBrowser();
            myBrowser.Navigating += WebBrowser_Navigating;

            myDownloadController         = new DownloadController();
            myDownloadController.Options = BrowserOptions.NotRunActiveX | BrowserOptions.NoActiveXDownload |
                                           BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                                           BrowserOptions.Utf8;
        }
Example #2
0
        public WinFormHtmlDocumentLoader()
        {
            myBrowser = new WebBrowser();
            myBrowser.Navigating += WebBrowser_Navigating;

            myDownloadController = new DownloadController();
            myDownloadController.Options = BrowserOptions.NotRunActiveX | BrowserOptions.NoActiveXDownload |
                BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                BrowserOptions.Utf8;
        }
Example #3
0
        /// <summary>
        /// Creates a WebScrapSC with a given/existing WebBrowser control.
        /// The ownership of the WebBrowser control passed is not taken over.
        /// </summary>
        public LegacyDocumentBrowser(WebBrowser webBrowser)
        {
            myOwnWebBrowser = false;

            Browser             = webBrowser;
            Browser.Navigating += WebBrowser_Navigating;

            myDownloadController         = new DownloadController();
            myDownloadController.Options = BrowserOptions.NotRunActiveX | BrowserOptions.NoActiveXDownload |
                                           BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                                           BrowserOptions.Utf8;
        }
Example #4
0
        /// <summary>
        /// Creates a WebScrapSC with a given/existing WebBrowser control.
        /// The ownership of the WebBrowser control passed is not taken over.
        /// </summary>
        public LegacyDocumentBrowser( WebBrowser webBrowser )
        {
            myOwnWebBrowser = false;

            Browser = webBrowser;
            Browser.Navigating += WebBrowser_Navigating;

            myDownloadController = new DownloadController();
            myDownloadController.Options = BrowserOptions.NotRunActiveX | BrowserOptions.NoActiveXDownload |
                BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                BrowserOptions.Utf8;
        }