FastReport for .NET 报表打印水印(WaterRemark)设置水印字体颜色
FastReport for .NET 报表打印水印(WaterRemark)设置水印字体颜色
扫一扫加微信
C# Code:
ReportPage page = report.Pages[0] as ReportPage;
Watermark watermark = new Watermark();
watermark.Enabled = true;
//设置字体
watermark.Font = new Font(watermark.Font.FontFamily, (float)80, FontStyle.Bold);
//设置颜色
(watermark.TextFill as SolidFill).Color = Color.FromArgb(71, 255, 0, 0);
watermark.Text = "*此工艺单加急!*";
page.Watermark = watermark;
//来源:C/S框架网 | www.csframework.com | QQ:23404761
ReportPage page = report.Pages[0] as ReportPage;
Watermark watermark = new Watermark();
watermark.Enabled = true;
//设置字体
watermark.Font = new Font(watermark.Font.FontFamily, (float)80, FontStyle.Bold);
//设置颜色
(watermark.TextFill as SolidFill).Color = Color.FromArgb(71, 255, 0, 0);
watermark.Text = "*此工艺单加急!*";
page.Watermark = watermark;
//来源:C/S框架网 | www.csframework.com | QQ:23404761
扫一扫加微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网