Type Default Value Read Only Description
Long 0 No The width of the virtual browser in pixels.




This property determines or reflects the virtual browser width when rendering HTML.

HTML documents do not have a predefined width and height. The width of an HTML document varies as the client resizes the browser. How far the content flows down the page is dependent on the width of the browser.

The Width parameter is used to control this aspect of HTML rendering. It is exactly as if you were displaying your HTML in a browser window the same width as the supplied value. Typical values might be 640 or 800.

If the Width is zero, then the web page view will default to a size which shows all the available content without needing to scroll from left to right. You can use this default to ensure that all your HTML content is visible.




The following example shows the effect that this parameter has on PDF rendering.

Set theDoc = Server.CreateObject("ABCpdf13.Doc")
theURL ="http://www.nasa.gov/multimedia/imagegallery/image_feature_313.html"
' Render html page with default browser width
theDoc.AddImageUrl theURL
' Save the document
theDoc.Save "c:\mypdfs\HtmlOptionsBrowserWidth0.pdf"
' Render html page with browser width = 300
theDoc.HtmlOptions.BrowserWidth = 300
theDoc.AddImageUrl theURL
' Save the document
theDoc.Save "c:\mypdfs\HtmlOptionsBrowserWidth300.pdf"