// -----------------------------------------------------------------------------------------
        internal string PrepareHtmlDocument(ReportHtmlPage Page)
        {
            this.PrepareToWrite(Page.PhysicalLocation);

            this.GeneratedPages.Add(Tuple.Create(Page.PhysicalLocation, Page));

            return(Page.PhysicalLocation);
        }
        internal ReportHtmlPage PushPage(IRecognizableComposite Source)
        {
            this.PageCount++;

            var Page = new ReportHtmlPage(Source, this);

            this.PagesStack.Push(Page);

            this.PageWrite("<HTML>");
            this.IncreaseIndent();

            this.CreatePageHeader(Source);

            this.PageWrite("<BODY>");
            this.IncreaseIndent();

            return(Page);
        }