Ejemplo n.º 1
0
        internal void Run(IPresent ip)
        {
            if (_Subreport == null)
            {                   // do true intialization
                ip.Start();
            }

            if (ip.IsPagingNeeded())
            {
                RunPage(ip);
            }
            else
            {
                if (_PageHeader != null && !(ip is RenderXml))
                {
                    _PageHeader.Run(ip, null);
                }
                _Body.Run(ip, null);
                if (_PageFooter != null && !(ip is RenderXml))
                {
                    _PageFooter.Run(ip, null);
                }
            }

            if (_Subreport == null)
            {
                ip.End();
            }

            if (_DataSourcesDefn != null)
            {
                _DataSourcesDefn.CleanUp(ip.Report());                  // datasets may not have been cleaned up
            }
        }
Ejemplo n.º 2
0
        internal void Run(IPresent ip)
        {
            if (_Subreport == null)
            {                     // do true intialization
                _RuntimeName = 0; // start names off at zero
                ip.Start();
            }

            if (ip.IsPagingNeeded())
            {
                RunPage(ip);
            }
            else
            {
                if (_PageHeader != null && !(ip is RenderXml))
                {
                    _PageHeader.Run(ip, null);
                }
                _Body.Run(ip, null);
                if (_PageFooter != null && !(ip is RenderXml))
                {
                    _PageFooter.Run(ip, null);
                }
            }

            if (_Subreport == null)
            {
                ip.End();
            }
        }
Ejemplo n.º 3
0
		internal void Run(IPresent ip)
		{
			if (_Subreport == null)
			{	// do true intialization
				ip.Start();
			}

			if (ip.IsPagingNeeded())
			{
				RunPage(ip);
			}
			else
			{
				if (_PageHeader != null && !(ip is RenderXml))
					_PageHeader.Run(ip, null);
				_Body.Run(ip, null);
				if (_PageFooter != null && !(ip is RenderXml))
					_PageFooter.Run(ip, null);
			}

			if (_Subreport == null)
				ip.End();

			if (_DataSourcesDefn != null)
				_DataSourcesDefn.CleanUp(ip.Report());	// datasets may not have been cleaned up
		}
Ejemplo n.º 4
0
		internal void Run(IPresent ip)
		{
			if (_Subreport == null)
			{	// do true intialization
				_RuntimeName = 0;				// start names off at zero
				ip.Start();
			}

			if (ip.IsPagingNeeded())
			{
				RunPage(ip);
			}
			else
			{
				if (_PageHeader != null && !(ip is RenderXml))
					_PageHeader.Run(ip, null);
				_Body.Run(ip, null);
				if (_PageFooter != null && !(ip is RenderXml))
					_PageFooter.Run(ip, null);
			}

			if (_Subreport == null)
				ip.End();
		}
Ejemplo n.º 5
0
 private void RunRender(ref IPresent ip, ref Pages pgs)
 {
     ip.Start();
     ip.RunPages(pgs);
     ip.End();
 }