public HTMLCapture() { wb = new OutlookCustomPrintTest.CustomWebBrowser(); wb.DocumentCompleted += wb_DocumentCompleted; wb.ScrollBarsEnabled = false; wb.ScriptErrorsSuppressed = true; wb.Navigate("about:blank"); wb.Refresh(); }
public CustomWebBrowserSite(CustomWebBrowser host) : base(host) { _host = host; _dispidCache = new Dictionary <int, PropertyInfo>(); foreach (PropertyInfo pi in _host.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance)) { if ((!pi.CanRead) || (pi.GetIndexParameters().Length > 0)) { continue; } object[] atts = pi.GetCustomAttributes(typeof(DispIdAttribute), true); if ((atts != null) && (atts.Length > 0)) { DispIdAttribute da = (DispIdAttribute)atts[0]; _dispidCache[da.Value] = pi; } } }