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
{
// define two variables that will be printed in the report
public int x;
public int y;
private void Table1_ManualBuild(object sender, EventArgs e)
{
// first we need to print the table header. Always follow the rule:
// each table row must have the same number of columns.
// print first two rows along with all its columns (the first
// header column and 10 data columns)
for (y = 0; y < 2; y++)
{
// print a row
Table1.PrintRow(y);
// print header column
Table1.PrintColumn(0);
// print 10 data columns
for (x = 1; x <= 10; x++)
{
// print the data column (second column in the template)
Table1.PrintColumn(1);
}
}
// now print data rows.
for (y = 1; y <= 10; y++)
{
// print the data row (third row in the template)
Table1.PrintRow(2);
// print header column
Table1.PrintColumn(0);
// print 10 data columns
for (x = 1; x <= 10; x++)
{
// print the data column (second column in the template)
Table1.PrintColumn(1);
}
}
}
}
}