Click or drag to resize

HeadlessBrowser Class

Headless browser showing the HTML result of a report: used by the renderers to print the result (HTML to PDF) or to take pictures of the JavaScript views (charts, gauges and maps for the PDF and Excel renderers)
Inheritance Hierarchy
SystemObject
  Seal.RendererHeadlessBrowser

Namespace: Seal.Renderer
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public class HeadlessBrowser : IAsyncDisposable

The HeadlessBrowser type exposes the following members.

Constructors
 NameDescription
Public methodHeadlessBrowserInitializes a new instance of the HeadlessBrowser class
Top
Methods
 NameDescription
Public methodDisposeAsync Close the page and the browser
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetChromiumPath Returns the path of the Chromium executable, the browser is downloaded at first use into the Assemblies folder of the repository
Public methodStatic memberGetElementPicture Returns the picture (PNG) of an element of the page
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberOpen Launch the browser and show an HTML result file, the page is returned when its resources are loaded and its scripts executed
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldBrowser The browser
Public fieldStatic memberChromiumRevisionLinux Chromium revision for Linux (nearest snapshot of the same branch point)
Public fieldStatic memberChromiumRevisionWindows Headless browser: an unbranded Chromium build (BSD-3-Clause, no Google Chrome terms of service), downloaded at first use from the chromium-browser-snapshots bucket into Assemblies\Chromium. The revision is pinned to the nearest snapshot of the Chrome 153 stable branch point (September 2026). To upgrade: take chromium_main_branch_position of the current stable release from https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Windows&num=1 and use the nearest revision that exists in https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/
Public fieldPage The page showing the HTML result
Public fieldStatic memberViewportHeight Height in pixels of the browser viewport showing the HTML result
Public fieldStatic memberViewportWidth Width in pixels of the browser viewport showing the HTML result
Top
See Also