Create Overlay Band with Code
Hello,
i try to add a Overlay Section with Code.
I found one Artikel from FR2.0 but i can not translate this to the FR.Net C# Version.
What i will do is to put a Background Piture behind each Formular.
Is there some Sample Code, or another way to do that?
Regards, Frank
i try to add a Overlay Section with Code.
I found one Artikel from FR2.0 but i can not translate this to the FR.Net C# Version.
What i will do is to put a Background Piture behind each Formular.
Is there some Sample Code, or another way to do that?
Regards, Frank
Comments
You can look at the sample project in the Demos\C#\ReportFromCode folder.
To create an Overlay band, use the following code:
page.Overlay = new OverlayBand();
page.Overlay.Height = ...;
page.Overlay.CreateUniqueName();
sorry for my Beginners Questions,
I have look at the samples, but not readable with VS C#Express is this right?
I can generate a Report with:
FastReport.Report report = new FastReport.Report();
FastReport.ReportPage page1 = new FastReport.ReportPage();
page1.Name = "Page1";
report.Pages.Add(page1);
page1.Overlay = new FastReport.OverlayBand();
page1.Overlay.Name = "Overlay1";
page1.Overlay.Height = 10 * 1.5f;
report.Design();
But how to do this by a existing Report?
FastReport.Report report = new FastReport.Report();
report.Load(@E:\fx1.frx);
report.Pages[0].Overlay= new FastReport.OverlayBand(); ??
report.Design();
Regards, Frank
To add an overlay band to the existing report:
thanks for the very quick Help.
Regards, Frank