/// <summary>
        /// Render the html using the given printer device.
        /// </summary>
        /// <param name="g">the printer device to use to render</param>
        public void PerformPrint(Graphics g, int iPage)
        {
            RPoint rpoint = this._htmlContainerInt.ScrollOffset;

            rpoint.Y = this._htmlContainerInt._pagelist.Page(iPage).YOffset;
            Point pt = new Point(Convert.ToInt32(rpoint.X), Convert.ToInt32(rpoint.Y));

            //this._htmlContainerInt.ScrollOffset = rpoint;
            //this.ScrollOffset = pt;

            ArgChecker.AssertArgNotNull(g, "g");
            using (var ig = new GraphicsAdapter(g, _useGdiPlusTextRendering))
            {
                _htmlContainerInt.PerformPrint(ig, iPage);
            }
        }