RDLC 报告中的圆角矩形 [英] Rounded rectangle in RDLC Report

查看:56
本文介绍了RDLC 报告中的圆角矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 RDLC 报告中绘制了矩形和表格.但我想显示矩形的圆角和表格单元格边框的黑色.有什么办法吗?或者无论如何我可以在 RDLC 报告元素中使用 CSS 样式?

I have drawn rectangles and tables in my RDLC report. But I want to show rectangle's rounded corners and Black color of Table cell borders. Is there any way to do it? Or anyway I can use CSS styles in RDLC report elements?

推荐答案

您可以尝试在元素上使用 CSS.无论实例名称是什么,ReportViewer Div 的 ID 通常都是1_",意思是如果你有类似的东西:

You can try to use CSS on the elements. The ID of the ReportViewer Div is usually "1_" whatever the instance name is, meaning if you have something like:

private void Page_Load(object sender, System.EventArgs e)
{
    MyReportViewer.ShowBackButton = false;
    MyReportViewer.ShowCredentialPrompts = false;
}

那么它 - 应该 - 被赋予 ID="1_MyReportViewer".

Then it -should- be given the ID="1_MyReportViewer".

这是根据我使用 ReportViewer2008 的经验,所以这是一个观察结果,不确定.

This is from my experiences with ReportViewer2008, so this is an observation and not exact certainty.

这篇关于RDLC 报告中的圆角矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆