FastReport编码 table数据模板

摘要:
˂?xmlversion="1.0"encoding="utf-8"?

FastReport编码 table数据模板第1张

FastReport编码 table数据模板第2张

<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReferencedAssemblies="System.dll&#13;&#10;System.Drawing.dll&#13;&#10;System.Windows.Forms.dll&#13;&#10;System.Data.dll&#13;&#10;System.Xml.dll&#13;&#10;System.Core.dll&#13;&#10;System.Drawing.dll" ReportInfo.Created="05/21/2020 15:51:04" ReportInfo.Modified="06/19/2020 14:13:19" ReportInfo.CreatorVersion="2019.3.2.0">
<ScriptText>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;
using System.Linq;
using System.Drawing;

namespace FastReport
{
public class ReportScript
{

private void Table1_ManualBuild(object sender, EventArgs e)
{
DataSourceBase datas = Report.GetDataSource(&quot;DataTable&quot;);
datas.Init();
int colCount = datas.Columns.Count;
Table1.PrintRow(0);
for (int i = colCount; i &lt; colCount; i++)
{
Cell1.Text = datas.Columns[i].Alias;
Table1.PrintColumn(0);
}
while (datas.HasMoreRows)
{
Table1.PrintRow(1);
for (int i = 0; i &lt; colCount; i++)
{
Cell2.Text = datas[datas.Columns[i]].ToString();
Table1.PrintColumn(0);
}
datas.Next();
}
Table1.Width=Page1.Width;
}
}
}
</ScriptText>
<Dictionary/>
<ReportPage Name="Page1" Watermark.Font="宋体, 60pt" UnlimitedWidth="true">
<DataBand Name="Data1" Cursor="No">
<TableObject Name="Table1" ManualBuildEvent="Table1_ManualBuild">
<TableColumn Name="Column1" />
<TableRow Name="Row1" Height="21.73">
<TableCell Name="Cell1" Font="宋体, 9pt"/>
</TableRow>
<TableRow Name="Row2" Height="23.62">
<TableCell Name="Cell2" Font="宋体, 9pt"/>
</TableRow>
</TableObject>
</DataBand>
<PageFooterBand Name="PageFooter1" Top="155.2" />
</ReportPage>
</Report>

免责声明:文章转载自《FastReport编码 table数据模板》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇我的Cocos2d-x学习笔记(七)纹理缓存、帧缓存、精灵的创建、zOrderdocker pull报x509问题及docker启动失败问题解决下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

浏览器默认样式

浏览器默认样式(user agent stylesheet)+cssreset 每种浏览器都有一套默认的样式表,即user agent stylesheet,在写网页时,没有指定的样式,按浏览器内置的样式表来渲染。这是合理的,像word中也有一些预留样式,可以让我们的排版更美观整齐。不同浏览器甚至同一浏览器不同版本的默认样式是不同的。这才带来了很多的坑,让...

BaseController 的使用

为了提现代码的高可用性,我们可以常见的把dao层进行抽取,service ,但是很少看见有controller的抽取,其实dao层也是可以被抽取的。 首先我们定义一个BaseController接口 package com.zhan.common.controller.base; import com.zhan.common.domain.base....

转载wuhuacong(伍华聪)的专栏 利用Aspose.Word控件实现Word文档的操作 (留作笔记)

Aspose系列的控件,功能都挺好,之前一直在我的Winform开发框架中用Aspose.Cell来做报表输出,可以实现多样化的报表设计及输出,由于一般输出的内容比较正规化或者多数是表格居多,所以一般使用Aspose.Cell来实现我想要的各种Excel报表输出。虽然一直也知道Aspose.Word是用来生成Word文档的,而且深信其也是一个很强大的控件,...

hbck2的一些用法

一、执行 hbase org.apache.hbase.HBCK2 可以看到下面一些选择项 **示例: -d 打印debug日志 -s 跳过客户端与服务端一致性的版本检测 hbase org.apache.hbase.HBCK2 -d -s bypass 1、bypass [OPTIONS] ... HBCK2的核心功能,bypass可以将一个或多个卡...

【转】【NPOI】使用NPOI进行word的读写

一、简介 1、操作Word的类库: NPOI:V2.5.1 快速生成https://github.com/tonyqus/npoi NPOI百度云下载:https://pan.baidu.com/s/13wiYmZ2txCq79CR-kj9Cvg提取码: 5x1v DocX(属于Xceed Words for .NET的免费版本):V1.6.0https...

css多栏自适应布局

css多栏自适应布局还是需要总结一下的,都是基本功。 一般使用position属性布局,或者用float属性布局,也可以使用display属性。 看资料说position适合首页布局,因为首页内容往往可以完全控制。float适合模板布局,模板中填充的内容无法控制。 一、左侧尺寸固定右侧自适应 1、浮动实现 在css浮动一文已介绍过。 .left{...