using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private void Page1_StartPage(object sender, EventArgs e)
{
DataSourceBase intezmenyDS = Report.GetDataSource("IntezmenyAdatok");
intezmenyDS.Init();
DataSourceBase tanulokDS = Report.GetDataSource("Tanulok");
Data1.DataSource = tanulokDS;
tanulokDS.Init();
DataSourceBase reszletekDS = Report.GetDataSource("Reszletek");
Data3.DataSource = reszletekDS;
Relation rel = new Relation();
rel.Name = "TanulokReszletekRelation";
rel.ParentDataSource = tanulokDS;
rel.ParentColumns = new string[] {"TanuloId", "OsztalycsoportId" };
rel.ChildDataSource = reszletekDS;
rel.ChildColumns = new string[] { "TanuloId", "OsztalycsoportId" };
Report.Dictionary.Relations.Add(rel);
reszletekDS.Init(tanulokDS);
}
}
}