zoukankan      html  css  js  c++  java
  • C# winfrom FastReport 变量设计加载

    1、源码

     DataTable dt5 = new DataTable();
                    dt5 = SqlHelper.SqlGetDataTable(StrSql, "tbEmpCont");
                    dst.Tables.Add(dt5.Copy());
                    //string reportpath = AppDomain.CurrentDomain.BaseDirectory+"OtDevPgCard.frx";
                    //FsReport.Load(@"..OtDevPgCard.frx");
                    FsReport.Load(@"FastReportOtEmpRecord.frx");
                    FsReport.RegisterData(dst.Tables[0], "tbEmpRecord");
                    FsReport.RegisterData(dst.Tables[1], "tbEmpEduca");
                    FsReport.RegisterData(dst.Tables[2], "tbEmpSociety");
                    FsReport.RegisterData(dst.Tables[3], "tbEmpTech");
                    FsReport.RegisterData(dst.Tables[4], "tbEmpCont");
    
                    textBarcode = dt.Rows[0]["IDCard"].ToString() + "  " + dt.Rows[0]["Name"].ToString();
                    TextObject pTextPrint = FsReport.FindObject("TextPrintTime") as TextObject;
                    (FsReport.FindObject("Barcode1") as BarcodeObject).Text = textBarcode;
                    pTextPrint.Text = SystemTime;
                    FsReport.Show();
                    FsReport.Dispose();

    2、报表设计

    注:报表树名字要有。

  • 相关阅读:
    php curl getinfo
    php 实现树形结构
    E时代主机,其实做一个小虚拟主机还是不错的
    php 生成验证码
    php curl
    nodejs 操作mysql
    php ++a和a++
    nodejs上传图片并显示的例子
    json
    Rock,Paper,Scissors 水NOJ 1090
  • 原文地址:https://www.cnblogs.com/yimeishui/p/5836359.html
Copyright © 2011-2022 走看看