繁体   English   中英

如何在 ActiveReports 的 SubReport 中绘制矩形?

[英]How can I draw rectangle in SubReport in ActiveReports?

我有一个使用 activereports 6 进行报告的程序。 我需要在报告上用 c# 绘制一个形状,但我无法弄清楚链接图片框或形状或 OleObject。 SubReport 脚本页面仅包含以下定义。

公共无效Detail_Format(){

你知道我应该如何链接以及我可以使用哪些库吗?

您可以使用以下方法绘制矩形

private void arv_Load(object sender, System.EventArgs e)
{
    rptDocument rpt = new rptDocument();
    rpt.Run();
    arv.Document=rpt.Document;
    arv.Document.Pages[0].BackColor = System.Drawing.Color.Purple;
    arv.Document.Pages[0].ForeColor = System.Drawing.Color.YellowGreen;
    arv.Document.Pages[0].PenStyle = DataDynamics.ActiveReports.Document.PenStyles.Dot;
    arv.Document.Pages[0].PenWidth = 4;
    Single x = 1.0F;
    Single y = 1.0F;
    Single width = 2.0F;
    Single height = 2.0F;
    RectangleF drawRect = new RectangleF(x,y,width,height);
    arv.Document.Pages[0].DrawRect(drawRect);
}

可以在此处找到旧文档 - https://help.grapecity.com/activereports/webhelp/Legacy/ActiveReports6/topic2094.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM