ActiveReports 8
Overlay Method
See Also  Example
GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > Page Class : Overlay Method

page
Page to be laid on top of the current page.

Glossary Item Box

Overlays the specified page object on top of the Page.

Syntax

Visual Basic (Declaration) 
Public Sub Overlay( _
   ByVal page As Page _
) 
C# 
public void Overlay( 
   Page page
)

Parameters

page
Page to be laid on top of the current page.

Example

C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{
    rptReport rpt = new rptReport();
    rpt.Run();
    rptTemplate rpt2 = new rptTemplate();
    rpt2.Run();
    viewer1.Document = rpt.Document;
    for(int i = 0; i < rpt.Document.Pages.Count; i++)
    {
        rpt.Document.Pages[i].Overlay(rpt2.Document.Pages[0]);
    }
}
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim rpt As New rptReport()
    rpt.Run()
    Dim rpt2 As New rptTemplate()
    rpt2.Run()
    Viewer1.Document = rpt.Document
    For i = 0 To rpt.Document.Pages.Count - 1
        rpt.Document.Pages(i).Overlay(rpt2.Document.Pages(0))
    Next
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also