FastReport for .NET 设置显示报表水印
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
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
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网