FastReport for .NET 设置显示报表水印
作者:C/S框架网  发布日期:2013-09-26 20:31:40
  FastReport for .NET 设置显示报表水印

贴图图片


C# Code:

if (report.Pages.Count > 0 && report.Pages[0] is ReportPage)
{
   ReportPage page = report.Pages[0] as ReportPage;
   Watermark watermark = new Watermark();
   watermark.Enabled = true;
   watermark.Font = new Font(watermark.Font.FontFamily, (float)40, FontStyle.Bold);
   watermark.Text = "* 此单未经审核 *\r\n* 禁止打印 *";
   page.Watermark = watermark;
}

//来源:C/S框架网(www.csframework.com) QQ:1980854898



上一篇 下一篇