通过从Visual Studio 2010导出,在Excel中重命名工作表 [英] Renaming worksheets in Excel via export from Visual Studio 2010

查看:188
本文介绍了通过从Visual Studio 2010导出,在Excel中重命名工作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用.rdlc扩展从Visual Studio 2010开发报告。



有一个要求,我必须以标签的形式将所有报告导出到一个excel文件。



当我将报表导出到Excel时,我可以以制表符(sheet1,sheet2,........)的形式看到报表。



我想重命名这些工作表。我看到在SQL Server 2008 R2中有一个属性PageName我无法在Visual Studio 2010中找到。请帮助我。

解决方案

您可以尝试以下方式:


PageName



设置此然后导出到excel选项卡将使用页面名称。
这可以在报表中的某些对象上设置,并可以使用表达式来设置名称。
包含此属性的对象包括:




   -  Tablix 
- 矩形

以下是您要探索的教程:




I' m developing reports from Visual Studio 2010 using .rdlc extension.

There is a requirement where I have to export all reports to one excel file in the form of tabs.

When I export reports to Excel I can see the reports in the form of tabs(sheet1, sheet2, ........).

I want to rename these sheets. I have seen that in SQL Server 2008 R2 there is a property PageName which I' m unable to find in Visual Studio 2010. Please help me with this.

解决方案

You can try this out:

PageName

Set this and then on export to excel the tab will use the page name. This can be set on certain objects in the report and can use Expressions to set the name. Objects that contain this property include:

 - Tablix
 - Rectangle

Here is the tutorial for you to explore:

这篇关于通过从Visual Studio 2010导出,在Excel中重命名工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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