/// <summary>
/// 設置報表配置
/// </summary>
/// <param name="config"></param>
protected override void SetReportConfig(FaibClass.Common.Windows.Config.ReportConfig config)
{
base.SetReportConfig(config);
object lbl = config.Header.FindObject("Company");
if (lbl != null)
{
((FaibClass.Common.Windows.Report.ReportLabel)lbl).Text = ContextArgs.Instance.CompanyName;
}
lbl = config.Header.FindObject("Employee");
if (lbl != null)
{
string text = ((FaibClass.Common.Windows.Report.ReportLabel)lbl).Text;
((FaibClass.Common.Windows.Report.ReportLabel)lbl).Text = string.Format(text, ContextArgs.Instance.UserName);
}
}
如果報表使用查詢,也要建立相應的*.pcs文件。