本文整理汇总了C#中IPresent.RunPages方法的典型用法代码示例。如果您正苦于以下问题:C# IPresent.RunPages方法的具体用法?C# IPresent.RunPages怎么用?C# IPresent.RunPages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPresent
的用法示例。
在下文中一共展示了IPresent.RunPages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunPage
internal void RunPage(IPresent ip)
{
Pages pgs = new Pages(ip.Report());
try
{
Page p = new Page(1); // kick it off with a new page
pgs.AddPage(p);
// Create all the pages
_Body.RunPage(pgs);
if (pgs.LastPage.IsEmpty()) // get rid of extraneous pages which
pgs.RemoveLastPage(); // can be caused by region page break at end
// Now create the headers and footers for all the pages (as needed)
if (_PageHeader != null)
_PageHeader.RunPage(pgs);
if (_PageFooter != null)
_PageFooter.RunPage(pgs);
pgs.SortPageItems(); // Handle ZIndex ordering of pages
ip.RunPages(pgs);
}
finally
{
pgs.CleanUp(); // always want to make sure we clean this up since
if (_DataSourcesDefn != null)
_DataSourcesDefn.CleanUp(pgs.Report); // ensure datasets are cleaned up
}
return;
}
示例2: RunPage
internal void RunPage(IPresent ip)
{
Pages pgs = new Pages(this);
try
{
Page p = new Page(1); // kick it off with a new page
pgs.AddPage(p);
// Create all the pages
_Body.RunPage(pgs);
if (pgs.LastPage.IsEmpty()) // get rid of extraneous pages which
pgs.RemoveLastPage(); // can be caused by region page break at end
// Now create the headers and footers for all the pages (as needed)
if (_PageHeader != null)
_PageHeader.RunPage(pgs);
if (_PageFooter != null)
_PageFooter.RunPage(pgs);
ip.RunPages(pgs);
}
finally
{
pgs.CleanUp(); // always want to make sure we clean this up since
}
return;
}