C# 在FastReport中水平打印数据
在Winform和C#中,如何在FastReport中水平显示dataset中的数据 例如:C# 在FastReport中水平打印数据,c#,matrix,fastreport,C#,Matrix,Fastreport,在Winform和C#中,如何在FastReport中水平显示dataset中的数据 例如: 1 2 3 4 5 ... +-----+-----+-----+-----+-----+ | 1 | 2 | 3 | 4 | 5 | +-----+-----+-----+-----+-----+ | 6 | 7 | 8 | 9 | 10 | +-----+-----+-----+-----+-----+ 最后,我想以矩阵格
1 2 3 4 5 ...
+-----+-----+-----+-----+-----+
| 1 | 2 | 3 | 4 | 5 |
+-----+-----+-----+-----+-----+
| 6 | 7 | 8 | 9 | 10 |
+-----+-----+-----+-----+-----+
最后,我想以矩阵格式显示数据,并指定列数
例如:
1 2 3 4 5 ...
+-----+-----+-----+-----+-----+
| 1 | 2 | 3 | 4 | 5 |
+-----+-----+-----+-----+-----+
| 6 | 7 | 8 | 9 | 10 |
+-----+-----+-----+-----+-----+
我的努力:
FastReport.TextObject
控件
在这种情况下,我无法确定何时通过页面
表
控件。但我在数据库中只有一列,我无法处理这个问题
参见FastReport演示【表>列数据源】 演示下载链接:https://【快速报告url】/en/下载/快速报告网/
private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase columnData = Report.GetDataSource("Employees");
// init the data source
columnData.Init();
// print the first table column - it is a header
Table1.PrintColumn(0);
// each PrintColumn call must be followed by either PrintRow or PrintRows call
// to print cells on the column
Table1.PrintRows();
// now enumerate the data source and print the table body
while (columnData.HasMoreRows)
{
// print the table body
Table1.PrintColumn(1);
Table1.PrintRows();
// go next data source row
columnData.Next();
}
// print the last table column - it is a footer
Table1.PrintColumn(2);
Table1.PrintRows();
}
参见FastReport演示【表>列数据源】 演示下载链接:https://【快速报告url】/en/下载/快速报告网/
private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase columnData = Report.GetDataSource("Employees");
// init the data source
columnData.Init();
// print the first table column - it is a header
Table1.PrintColumn(0);
// each PrintColumn call must be followed by either PrintRow or PrintRows call
// to print cells on the column
Table1.PrintRows();
// now enumerate the data source and print the table body
while (columnData.HasMoreRows)
{
// print the table body
Table1.PrintColumn(1);
Table1.PrintRows();
// go next data source row
columnData.Next();
}
// print the last table column - it is a footer
Table1.PrintColumn(2);
Table1.PrintRows();
}
参见FastReport演示【表>列数据源】 演示下载链接:https://【快速报告url】/en/下载/快速报告网/
private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase columnData = Report.GetDataSource("Employees");
// init the data source
columnData.Init();
// print the first table column - it is a header
Table1.PrintColumn(0);
// each PrintColumn call must be followed by either PrintRow or PrintRows call
// to print cells on the column
Table1.PrintRows();
// now enumerate the data source and print the table body
while (columnData.HasMoreRows)
{
// print the table body
Table1.PrintColumn(1);
Table1.PrintRows();
// go next data source row
columnData.Next();
}
// print the last table column - it is a footer
Table1.PrintColumn(2);
Table1.PrintRows();
}
参见FastReport演示【表>列数据源】 演示下载链接:https://【快速报告url】/en/下载/快速报告网/
private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase columnData = Report.GetDataSource("Employees");
// init the data source
columnData.Init();
// print the first table column - it is a header
Table1.PrintColumn(0);
// each PrintColumn call must be followed by either PrintRow or PrintRows call
// to print cells on the column
Table1.PrintRows();
// now enumerate the data source and print the table body
while (columnData.HasMoreRows)
{
// print the table body
Table1.PrintColumn(1);
Table1.PrintRows();
// go next data source row
columnData.Next();
}
// print the last table column - it is a footer
Table1.PrintColumn(2);
Table1.PrintRows();
}
使用Table ManualBuild Event,可以水平显示数据,如下所示: (我无法上传.frx,因此您可以下载快速报告演示并查看详细信息)
使用Table ManualBuild Event,可以水平显示数据,如下所示: (我无法上传.frx,因此您可以下载快速报告演示并查看详细信息)
使用Table ManualBuild Event,可以水平显示数据,如下所示: (我无法上传.frx,因此您可以下载快速报告演示并查看详细信息)
使用Table ManualBuild Event,可以水平显示数据,如下所示: (我无法上传.frx,因此您可以下载快速报告演示并查看详细信息)
那么,没有直接方法?那么,没有直接方法?那么,没有直接方法?那么,没有直接方法?那么,没有直接方法?