如何格式化 SSRS Tablix
您好,有没有办法格式化 ssrs tablix?我的意思是,我想应用一些类似于图表的样式、主题。是否可以?
Hi is there anyway to format ssrs tablix? I mean, I would like to apply some styles, themes similer to charts. Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,但是如果您要设计多个报告,那么手动对每个 Tablix 进行此操作将会很痛苦。
为什么不在代码部分定义一些颜色并为您想要修饰该条目的任何内容设置表达式?
示例:在代码中设置
Public Const TablixHeaderBGColor As String = "#b5121b"
然后将
BackgroundColor
设置为=Code.TablixHeaderBGColor
声明您需要的任意数量,然后您只需在一处更改它们即可更改所有 Tablix 样式。
我更进一步,将条目放入数据库中,现在我的所有报告样式都可以使用十六进制或 html 颜色名称在一个位置进行更改。
Yes, but if you are designing multiple reports it is going to be a pain to do this to EVERY SINGLE Tablix by hand.
Why not define some colors in the code section and set the expression for whatever you are trying to spruce up to that entry?
Example: Set in code
Public Const TablixHeaderBGColor As String = "#b5121b"
Then set
BackgroundColor
to=Code.TablixHeaderBGColor
Declare as many as you need and then you only have to change them in one spot to change all Tablix styles.
I took this a step further and put entries in a Database and now ALL my reports styles can be changed in one spot using hex or html color names.
我知道这是一个老问题。但我确实找到了一种方法来插入 Tablix 的主题。
只有 6 个选项,但我相信您可以从其他地方下载更多。
如果使用表格向导,它将为您提供 6 个用于设计表格的选项。不幸的是,当您完成向导后,无法一步更改整个样式。相反,您必须更改表中每个文本框的属性。
我希望这有帮助。我将继续寻找更多方法来改变报告的整体风格,如果我发现任何东西,我将编辑我的帖子。
I know this is an Old Question. but I did find a way to insert Tablix's with a Theme.
there are only 6 options, but I am sure you can download more from somewhere.
if use the Table Wizard it will give you 6 options for designing the Table. unfortunately after you are finished with the wizard there is no way to change the entire style in one step. instead you have to change the properties for each TextBox in the Table.
I hope this helps. I will keep looking for more ways to change the style of the report overall, if I find anything I will Edit my Post.
当然。将 Tablix 控件插入报表设计器中,按 F4,然后随意更改 Tablix 元素的属性(边框、字体、填充、大小等)。
Sure. Insert a Tablix control into your Report Designer, hit F4, and change the properties of the Tablix element (Borders, Fonts, Padding, Size, etc.) at will.