ReportViewer problems - sql-server-2008

I've been trying to get a report running through Microsoft ReportViewer in Visual Studio 2012. Here is my situation.
I have a report (.rdl file) that was originally created through Microsoft Reporting Services running on a SQL Server 2008 R2 server.
I originally tried moving it into a VB.NET project running through Visual Studio 2005, but when I converted the .rdl file to .rdlc and tried to bring it into the VS 2005, I could not view the .rdlc file in design time. A while after that, I figured out that this was due to schema compatibility issues because of the fact that the report was created on a SQL Server 2008 server.
So then I tried creating a project through Visual Studio 2012 instead, which we also had in house. This time I was successfull at being able to view the report in design time. However after that, I ran into run time issues because I was using Version 8 of the Microsoft.ReportViewer.Winforms dll. I believe that this was also due to a schema comaptibility issue
So now, I'm trying to move up to using a newer version of the Microsoft.ReportViewer.Winforms dll (Version 11). When I remove the Version 8 and add the version 11 instead in my references, everything appears to be fine at first, no errors present. However, when I try to build my project I get the many compile errors all over the place like the following:
Type 'Microsoft.Reporting.WinForms.ReportViewer' is not defined.
The wierdest part is that if I were to remove and re-add the reference, or check one of the Microsoft.Reporting references in the Imported namespace, all the errors go away. But when I rebuild the project the errors come back, and I'm stuck.
I'm currently running the Microsoft .NET framework 4.5 on my computer, and I'm using Microsoft Visual Studio Professional 2012 as my development platform.
Any help would be appreciated
Thanks,
Doug

This might help: How to edit SSRS 2008R2 Reports in Visual Studio 2012?

Related

ssrs RDL from Visual Studio 2013 to 2017

For many versions I have a reporting services project in Visual Studio. The latest is Visual Studio 2013. I have installed Visual Studio 2017 community edition and it has the Microsoft Reporting Services Projects extension. It also says that it has Data Tools installed as part of VS (at least that's what it looks like). Yet my rptproj file will not be recognized by Visual studio 2017. Every document that I'm sent to says I need SqlServer Data Tools but is that now a separate program I have to use to deal with reports outside of Visual Studio? It makes no sense to me given that there is a reporting Services projects in VS. But that isn't working at all. I've tried creating a new project and copying the RDL over to it. It opens it and I can see designer but when I try to preview I get the dreeded " Unknown report version 9". Any help would be very very much appreciated.
Just download and install
https://learn.microsoft.com/en-gb/sql/ssdt/download-sql-server-data-tools-ssdt
SSDT will provide all the missing bits for VS2017. You will then be able to edit your reports in VS2017 but you will need to upgrade the solutions. You will be promoted to do this upgrade when you attempt to open the project/solution.

Data missing in HTML on SSDT16 and Report Builder

I'm having an issue with the soft render of a simple report in both SSDT and Report Builder environments in 2016. I'm sure there is a sample solution but I'm unable to find a solution on the web/forum.
I'm actually just using a simple tablix from AdventureworksDW2016CTP3 with a couple of fields inserted. The data might initially display but disappears after modifying the field length or switching between design and preview. More interestingly, the report views perfectly when utilising print preview and it exports to .pdf correctly... and also views correctly when deployed to the report server.
All is installed locally on my laptop with Windows 10 and Administrator privileges. I have repaired and upgraded Visual Studio and SSDT to the latest version but without any luck.
I've added images of the simple design, soft render and print preview as well as Visual Studio System Info at the bottom.
Thanks
Visual Studio Info
Microsoft Visual Studio 2015 Shell (Integrated) Version 14.0.25420.01 Update 3
Microsoft .NET Framework Version 4.6.01586
SQL Server Analysis Services 13.0.1701.8
Microsoft SQL Server Analysis Services Designer Version 13.0.1701.8
SQL Server Data Tools 14.0.61021.0
Microsoft SQL Server Data Tools
SQL Server Integration Services
Microsoft SQL Server Integration Services Designer Version 13.0.1601.5
SQL Server Reporting Services 13.0.1701.8
Microsoft SQL Server Reporting Services Designers Version 13.0.1701.8
Images
Design Images
Soft Render / HTML
Print Render
After much testing it appears that the problem came down to my graphics driver - Intel HD Graphics 5500.
The problem still occurred after I updated the driver so I then disabled it... which solved the problem. I then reinstalled the driver and all is now working as expected.
This link gave me the initial indication of the issue:
https://support.microsoft.com/en-us/help/2894215/you-experience-performance-issues,-product-crashes,-or-rendering-issues-in-visual-studio-2015-and-visual-studio-2013

Can I create SSRS Reports in VS 2015 using SQL Server 2008 R2?

I'm new to SSRS.
Recently upgraded my development environment from Visual Studio 2010 to Visual Studio 2015 Enterprise Edition. Currently my reports are made using Crystal Reports. I would like to to use SSRS and I'm trying find out my current environment will allow me to do it.
So now I'm using Visual Studio 2015 and SQL Server 2008 R2.
Can I create SSRS Reports using these two?
If yes, how can I create it?
I know how to create a report and publish it using the Business Intelligence Development Studio in SQL Server 2008 R2. But could not understand how I could use those reports in my WebApplication project in Visual Studio 2015.
Also would like to know - Is it possible to reuse my existing datasets which I'm using in my Crystal Reports?
Should I upgrade my SQL Server version?
Yes, you can create reports for SSRS 2008 R2 with VS 2015. You will need to download, and install, the SQL Server Data Tools (SSDT) at the following link.
https://msdn.microsoft.com/en-us/library/mt204009.aspx
To build reports, create a new project using the Report Server Project template found under Templates/Business Intelligence in the New Project dialog. (After you install SSDT)
This is the replacement for BIDS, so much of what you see should look familiar.
Not sure about the Crystal Reports datasets, but you should be able to reuse any SQL or stored procedures that may be a part of these.
Should you upgrade? At some point, sure, but it isn't required. SQL Server 2016 is about to be here, and you are working with a product that is over 4 years old, and more than likely going to be out of support soon, if it isn’t already.
There is a setting in Visual Studio (See above answers for more details.)
There is a setting in
Project --> Properties --> TargetServerVersion
Note that here, server means database server or db-server, as opposed to web server or report-server.
But note well: For me, it is only the version in the folder:
..Projects\myProject1\myProject1\bin\Debug
that will actually deploy and work.

Reporting Services Built in 2012 Deploy in 2008

I have been working for a client who run SQL Server 2008 in their live environment. I had been working onsite for a period but now work from home. However, due to security, I cannot connect to the live setup, I can only connect to a test server. This server runs SQL Server 2012. I script any code and send it to the office for someone to deploy. The problem I have is I am now doing some reporting services work. They are only pretty basic reports, tablix controls, nothing fancy. Is is possible to build on 2012 and deploy to 2008? Can I do something with the .rdl file to make this work or is it not going to be feasible?
Thanks in advance
In the Properties of the ReportServer Project in Visual Studio you can set the target server version.
Right click the Project in the Solution Explorer pane and set the TargetServerVersion Property to the required version. This works for reports SQL Server Reporting Services 2008 onwards. The designer will then manage what features are available to avoid using features from a later version of SSRS.
The .rdl files are nicely formated XML. You can use your favorite diff tool to compare reports generated in either version of the tool.
I'm pretty sure that Microsoft doesn't support moving a newer RDL to an older version server.
There were huge changes to the .rdl format between 2005 and 2008, moderate changes between 2008 and 2008R2, but I haven't really looked into 2008R2 versus 2012. From what I've seen these should be smaller changes yet.
If you do this you are off of the golden supported brick road. Since this server is production, and you don't have a good way to test this, I would find a 2008 server to develop with. I wouldn't want my name connected with the possible problems that could come up with a hack to move the rdl backwards.

Upgrade RDLC from 2008 to 2010 (2005 report to 2008 report) Error

I have multiple reports that have been created over the years and anytime a RDLC file is opened in the VS2010, it is asking for an upgrade. I have seen many posts about changing the .config file, but these files are not using config files since they are application based. I have Microsoft.ReportViewer.Winforms, .Common, .ProcessingObjectModel and, .WebForms 9.0 and 8.0 installed on the lab machine.
After upgrading a report and trying to run it on the lab machine ( ms server 2008) I am returned an error of: "The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded.
Does Report Viewer 2010 Redistributable Package fix this issue? I cannot find a distinct answer. If not, is there another workaround without changing server modes from local to server?
You should really be opening those using the SQL Server Business Intelligence Development Studio (BIDS), which can be found under the Microsoft SQL Server 2008R2 folder on the Programs menu.