-
Notifications
You must be signed in to change notification settings - Fork 615
/
Copy pathPageFooterBand.cs
55 lines (51 loc) · 1.52 KB
/
PageFooterBand.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections;
using System.ComponentModel;
using FastReport.Utils;
namespace FastReport
{
/// <summary>
/// Represents a page footer band.
/// </summary>
public class PageFooterBand : BandBase
{
#region Properties
/// <summary>
/// This property is not relevant to this class.
/// </summary>
[Browsable(false)]
public new bool StartNewPage
{
get { return base.StartNewPage; }
set { base.StartNewPage = value; }
}
/// <summary>
/// This property is not relevant to this class.
/// </summary>
[Browsable(false)]
public new bool PrintOnBottom
{
get { return base.PrintOnBottom; }
set { base.PrintOnBottom = value; }
}
#endregion
/// <inheritdoc/>
public override void InitializeComponent()
{
base.InitializeComponent();
// SubreportObject on a pagefooter will produce StackOverflow exception. Set PrintOnParent flag to avoid this
foreach (ReportComponentBase obj in Objects)
{
if (obj is SubreportObject)
(obj as SubreportObject).PrintOnParent = true;
}
}
/// <summary>
/// Initializes a new instance of the <see cref="PageFooterBand"/> class with default settings.
/// </summary>
public PageFooterBand()
{
FlagUseStartNewPage = false;
}
}
}