[英]How can I draw rectangle in SubReport in ActiveReports?
I have a program which uses activereports 6 for reports.我有一个使用 activereports 6 进行报告的程序。 I need to draw a shape with c# on report but i couldn't figure out to link picturebox or shape or OleObject.
我需要在报告上用 c# 绘制一个形状,但我无法弄清楚链接图片框或形状或 OleObject。 SubReport script page includes only below definition.
SubReport 脚本页面仅包含以下定义。
public void Detail_Format() {公共无效Detail_Format(){
} Do you have any idea how should i link and which libraries i can use?你知道我应该如何链接以及我可以使用哪些库吗?
You can draw a rectangle by using您可以使用以下方法绘制矩形
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);
}
Legacy docs can be found here - https://help.grapecity.com/activereports/webhelp/Legacy/ActiveReports6/topic2094.html可以在此处找到旧文档 - https://help.grapecity.com/activereports/webhelp/Legacy/ActiveReports6/topic2094.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.