FastReport for .NET 设置显示报表水印
FastReport for .NET 设置显示报表水印FastReport.NET 1.618版本,报表加水印:
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;
}
扫一扫加作者微信