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 Fejlec_StartPage(object sender, EventArgs e)
{
Data2.DataSource = Report.GetDataSource("TanuloCsoport");
Data3.DataSource = Report.GetDataSource("TanuloInfo");
DataSourceBase tcsData = Data2.DataSource;
DataSourceBase tData = Data3.DataSource;
Relation rel = new Relation();
rel.Name = "first";
rel.ParentDataSource = tcsData;
rel.ChildDataSource = tData;
rel.ParentColumns = new string[] { "tanuloId" };
rel.ChildColumns = new string[] { "tanuloId" };
Report.Dictionary.Relations.Add(rel);
}
}
}