本文整理汇总了C#中XtraReport.BeginInit方法的典型用法代码示例。如果您正苦于以下问题:C# XtraReport.BeginInit方法的具体用法?C# XtraReport.BeginInit怎么用?C# XtraReport.BeginInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XtraReport
的用法示例。
在下文中一共展示了XtraReport.BeginInit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Inizializza
protected virtual void Inizializza(ImpostazioneReportDTO impostazioniReport, string noteRtf)
{
_impostazioniReport = impostazioniReport;
// Create XtraReport instance
_report = GetXtraReport(impostazioniReport, _isSubreport);
_report.BeginInit();
if (!_isSubreport)
{
_reportHeaderBand = new ReportHeaderBand();
_reportFooterBand = new ReportFooterBand();
_topMarginBand = new TopMarginBand();
_bottomMarginBand = new BottomMarginBand();
_pageFooterBand = new PageFooterBand();
}
_pageHeaderBand = new PageHeaderBand();
_detailBand = new DetailBand();
//
// Report Header
//
if (_reportHeaderBand != null)
{
_reportHeaderBand.Name = "ReportHeader";
_reportHeaderBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_reportHeaderBand.TextAlignment = TextAlignment.TopLeft;
}
//
// Report Footer
//
if (_reportFooterBand != null)
{
_reportFooterBand.Name = "ReportFooter";
_reportFooterBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_reportFooterBand.TextAlignment = TextAlignment.TopLeft;
}
//
// Page Header
//
if (_pageHeaderBand != null)
{
_pageHeaderBand.Name = "PageHeader";
_pageHeaderBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_pageHeaderBand.TextAlignment = TextAlignment.TopLeft;
if (_isSubreport)
_pageHeaderBand.HeightF = 40f;
}
//
// Page Footer
//
if (_pageFooterBand != null)
{
_pageFooterBand.Name = "PageFooter";
_pageFooterBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_pageFooterBand.TextAlignment = TextAlignment.TopLeft;
}
//
// TopMargin
//
if (_topMarginBand != null)
{
_topMarginBand.Name = "TopMargin";
_topMarginBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_topMarginBand.TextAlignment = TextAlignment.TopLeft;
_topMarginBand.HeightF = 10;
}
//
// BottomMargin
//
if (_bottomMarginBand != null)
{
_bottomMarginBand.Name = "BottomMargin";
_bottomMarginBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_bottomMarginBand.TextAlignment = TextAlignment.TopLeft;
_bottomMarginBand.HeightF = 10;
}
//
// Detail
//
_detailBand.Name = "Detail";
_detailBand.Padding = new PaddingInfo(0, 0, 0, 0, 100F);
_detailBand.TextAlignment = TextAlignment.TopLeft;
//
// RipartoConsuntivo
//
_report.Bands.Add(_detailBand);
if (_reportHeaderBand != null)
_report.Bands.Add(_reportHeaderBand);
if (_reportFooterBand != null)
_report.Bands.Add(_reportFooterBand);
//.........这里部分代码省略.........