简体   繁体   English

SQL Server Reporting Services(SSRS)-是否可以一次格式化报表中的所有网格线?

[英]SQL Server Reporting Services (SSRS ) - is it possible to format all gridlines at once in the report?

Is it possible to format all charts at once. 是否可以一次格式化所有图表。 For example, I want to set all charts with the same background color, remove all grid lines, set x axis font to x size etc. 例如,我想将所有图表设置为相同的背景色,删除所有网格线,将x轴字体设置为x大小,等等。

I know I can do it manually, but I would like to "pre configure" so all charts are the same. 我知道我可以手动执行此操作,但是我想“预配置”,以便所有图表都相同。 There must be something to put in the code section 必须在代码部分中放入一些内容

Many thanks 非常感谢

SOLVED: I have created a template. 求助:我已经创建了一个模板。 You can put your templates in the folders below: 您可以将模板放在以下文件夹中:

For SQL Server 2008 对于SQL Server 2008

C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\PrivateAssemblies\\ProjectItems\\ReportProject C:\\ Program Files(x86)\\ Microsoft Visual Studio 9.0 \\ Common7 \\ IDE \\ PrivateAssemblies \\ ProjectItems \\ ReportProject

For SQL Server 2012 对于SQL Server 2012

C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\PrivateAssemblies\\ProjectItems\\ReportProject C:\\ Program Files(x86)\\ Microsoft Visual Studio 10.0 \\ Common7 \\ IDE \\ PrivateAssemblies \\ ProjectItems \\ ReportProject

Create a template report in reporting services and re-use this template across all of your reports. 在报表服务中创建模板报表,然后在所有报表中重复使用此模板。

I wrote this blog post a long long time ago but it should work for 2003, 2005, 2008 and 2012: See this: http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx 我很久以前就写了这个博客文章,但它应该适用于2003、2005、2008和2012:参见: http : //weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx

no, the code is unique per report. 不可以,每个报告的代码是唯一的。

What you can do is create an External assembly with your code and access it on all your reports to change run-time properties. 您可以做的是使用代码创建一个外部程序集,并在所有报表上对其进行访问以更改运行时属性。

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

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