简体   繁体   English

Visual Studio 2005报表和Windows 7

[英]Visual Studio 2005 Reports and Windows 7

We have recently upgraded to windows 7 and have noticed that there are compatibility issues with my previous version of MS visual Studio 2005. 我们最近升级到了Windows 7,并且注意到与我以前的MS visual Studio 2005版本存在兼容性问题。

From taking a look around the web I believe that this issue is due to SP1 for Windows 7. My organisation will not get rid of SP1 just for one or two developers so I need to figure out a work around. 通过浏览网络,我相信这个问题是由于Windows 7的SP1引起的。我的组织不会只为一两个开发人员摆脱SP1,所以我需要弄清楚一种解决方法。

This is the issue... I have an old MS visual studio website that has a report located on the home. 这就是问题。我有一个旧的MS Visual Studio网站,该网站在家中有一份报告。 This report was created in MS VS 2005. 该报告是在MS VS 2005中创建的。

Other versions of Visual Studio in have are 2010 and 2012. I have tried to convert the 2005 report into 2010 and this does state that it has been converted but I still cant open or do anything with the report. Visual Studio的其他版本是2010和2012。我曾尝试将2005报表转换为2010,但这确实表明它已经转换,但是我仍然无法打开报表或对报表执行任何操作。 My 2005 web site is too large to convert or move into 2010 and we can still maintain this 2005 site by opening this up in 2010. It just seems to be a problem with the 2005 report. 我的2005年网站太大了,无法转换或迁移到2010年,我们仍然可以通过在2010年打开它来维护此2005年网站。2005年报告似乎只是一个问题。

I'm running out of options to make a simple change to a report. 我没有办法对报告进行简单的更改。 Anyone else got any ideas? 其他人有任何想法吗? I have even tried to create this report in 2010 and then add this to my 2005 site but this doesn't work. 我什至尝试在2010年创建此报告,然后将其添加到我的2005网站中,但这不起作用。

Regards Betty. 问候贝蒂。

You say a report and then say that it is a whole site? 您说一个报告,然后说它是整个站点? Why not run a second site in tandom? 为什么不同时运行另一个站点? Make a whole new site and name it differently like 制作一个全新的网站,并用不同的名称命名

http:// (servername)/Reports2012

Then put reports there. 然后将报告放在那里。 You cannot open a converted report in a site that is for a prior version, you can view it in Microsoft Business Intelligence Studio, BIDS, which is an add on to Visual Studio. 您不能在以前版本的网站中打开转换后的报表,可以在Microsoft Business Intelligence Studio BIDS(Visual Studio的附加组件)中查看该报表。 If you can upgrade but cannot view it there, there is something wrong with the language file potentially. 如果您可以升级但无法在此处查看,则语言文件可能存在问题。 I would then make a copy of it in the old 2005 BIDS, then take that copy and see if you can upgrade that and if it will work. 然后,我将在旧的2005 BIDS中对其进行复制,然后将其复制并查看是否可以升级以及是否可以使用。 If that STILL does not work you could make a test report in BIDS 2010(SQL 2012 works on VS 2010, yes weird but true) to assure you can create reports there. 如果该STILL不起作用,则可以在BIDS 2010中创建测试报告(SQL 2012在VS 2010上运行,是很奇怪,但确实如此),以确保您可以在此处创建报告。 Many times people try to open SQL Server 2012 Reports on VS 2012 and it won't work. 很多时候,人们尝试在VS 2012上打开SQL Server 2012报表,但它无法正常工作。 You need 2010 add on you can find it under All Programs>MS SQL Server 2012>SQL Server Data Tools(They made the naming very confusing as it opens up and display BIDS, but calls itself 'Data Tools' under the programs). 您需要添加2010,然后在“所有程序”>“ MS SQL Server 2012”>“ SQL Server数据工具”下找到它(当打开并显示BIDS时,它们使命名非常混乱,但在程序下将其称为“数据工具”)。 Every other version of SSRS lines up with that year of SQL Server to that year of VS. 所有其他版本的SSRS都与SQL Server的那一年到VS的那一年相匹配。 Not 2012. 不是2012年。

If the report upgrade still does not work, yet you can create a run a new report fine; 如果报表升级仍然无法进行,则可以创建一个运行新的报表。 I would suggest potentially opening up the file dircectly. 我建议潜在地直接打开文件。 Your projects in a Reports solution generally have a file '(something).rdl' that RDL is the actual file and is just XML markup of the language. 报告解决方案中的项目通常具有文件“(something).rdl”,该文件是RDL的实际文件,而只是该语言的XML标记。 This is a last resort as you are essentially trying to do manually what the upgrade is failing to do in the xml. 这是不得已的方法,因为您实质上是在尝试手动执行xml升级失败的操作。 You merely copy a working report, and then paste the parts of the old report into their correct sections. 您只需复制工作报告,然后将旧报告的各个部分粘贴到它们的正确部分中。 Ensure the XML is valid as well. 确保XML也有效。

If you cannot manage that to work you will need to recreate the report from scratch. 如果您无法管理该工作,则需要从头开始重新创建报告。

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

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