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 Table11_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase rowData = Report.GetDataSource("施工进度一览表");
// init the data source
rowData.Init();
// print the first table row - it is a header
Table11.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table11.PrintColumns();
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table11.PrintRow(0);
Table11.PrintColumns();
// go next data source row
rowData.Next();
}
// print the last table row - it is a footer
Table11.PrintRow(1);
Table11.PrintColumns();
}
private void Table23_ManualBuild(object sender, EventArgs e)
{ // get the data source by its name
DataSourceBase rowData = Report.GetDataSource("焊接合格率一览表(管道)");
// init the data source
rowData.Init();
// print the first table row - it is a header
Table23.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table23.PrintColumns();
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table23.PrintRow(0);
Table23.PrintColumns();
// go next data source row
rowData.Next();
}
// print the last table row - it is a footer
Table23.PrintRow(1);
Table23.PrintColumns();
}
private void Table19_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource("焊接合格率一览表(设备)");
// init the data source
rowData.Init();
// print the first table row - it is a header
Table19.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table19.PrintColumns();
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table19.PrintRow(0);
Table19.PrintColumns();
// go next data source row
rowData.Next();
}
// print the last table row - it is a footer
Table19.PrintRow(1);
Table19.PrintColumns();
}
private void Table27_ManualBuild(object sender, EventArgs e)
{ DataSourceBase rowData = Report.GetDataSource("焊工合格率一览表(管道)");
// init the data source
rowData.Init();
// print the first table row - it is a header
Table27.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table27.PrintColumns();
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table27.PrintRow(0);
Table27.PrintColumns();
// go next data source row
rowData.Next();
}
// print the last table row - it is a footer
Table27.PrintRow(1);
Table27.PrintColumns();
}
private void Table29_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource("焊工合格率一览表(设备)");
// init the data source
rowData.Init();
// print the first table row - it is a header
Table29.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table29.PrintColumns();
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table29.PrintRow(0);
Table29.PrintColumns();
// go next data source row
rowData.Next();
}
// print the last table row - it is a footer
Table29.PrintRow(1);
Table29.PrintColumns();
}
}
}