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 masterData = Data1.DataSource;
masterData.Init();
DataSourceBase rowData = Report.GetDataSource("GondviseloAdatok");
Data3.DataSource = rowData;
rowData.Init();
Relation rel = new Relation();
rel.Name = "Tanulo_Gondviselo";
rel.ParentDataSource = masterData;
rel.ChildDataSource = rowData;
rel.ParentColumns = new string[] { "ID" };
rel.ChildColumns = new string[] { "TanuloId" };
Report.Dictionary.Relations.Add(rel);
string tagintezmenyCim = (string)Report.GetParameterValue("TagintezmenyCim");
if(!string.IsNullOrWhiteSpace(tagintezmenyCim))
{
Text25.Text = tagintezmenyCim + Environment.NewLine + "[Kelt]";
}
}
}
}