I’ve read about this before but just missed something. That Something I missed was pretty important.
In the Visual Studio report project properties there are three items that are important to set correctly:
TargetServerUrl – this is the Url of the SharePoint site.
TargetReportFolder – this is the Url where you want your reports to go, within the SharePoint site.
TargetDataSourceFolder – this is the Url where you want your data sources to go, within the SharePoint site.
Now this is very important so listen closely: the TargetServerUrl is the Url of the SHAREPOINT SITE and is **NOT** EQUAL to the TargetReportFolder or the TargetDataSourceFolder
If you have a SharePoint site at http://www.company.com/sites/Accounting then the TargetServerUrl should be set to http://www.company.com/sites/Accounting.
Now you need someplace to store the reports. Reports can be stored in Document Libraries. So, within the SharePoint site you will either:
1. Create a new Document Library that is setup with Report Builder Report content type, or
2. Use the Shared Documents library and set it up to receive Report Builder Report content type.
You may want to also include the Report Data Source content type in the Library as well.
Let’s say you set up a new Document Library called “SalesReports”, and wanted to deploy reports from Report Designer into that library. Let’s also say that you set up another Document Library called “DataSources” to store your data sources into (just to keep things nice and neat). Here is what you would enter into the Report Designer report properties:
TargetServerUrl: http://www.company.com/sites/Accounting
TargetReportFolder: http://www.company.com/sites/Accounting/SalesReports
TargetDataSourceFolder: http://www.company.com/sites/Accounting/DataSources
It took HOURS to figure this out. Hope it helps someone.
Recent Comments