Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CreateLinkedReport Method

SQL Server 2000

ReportingService.CreateLinkedReport Method

Adds a new linked report to the report server database.

Public Sub CreateLinkedReport( _
   ByVal Report As String, _
   ByVal Parent As String, _
   ByVal Link As String, _
   ByVal Properties() As [Namespace].Property _
   Member of [Namespace].ReportingService

public void CreateLinkedReport(
   string Report,
   string Parent,
   string Link,
   [Namespace].Property[] Properties
   Member of [Namespace].ReportingService
The name of the new linked report.
The full path name of the parent folder to which to add the new report.
The full path name of the report that will be used for the report definition.
An array of Property[] objects that defines the property names and values to set for the linked report.

Operation Description
Create Link Required to link a report to the given report item.
Create Report Required for creating a report within a folder.


A linked report has the same properties as a standard report, but it does not contain its own report definition. A linked report cannot reference another linked report.

The creator of a linked report must have permission to read the definition of the report that the linked report references; however, this level of permission is not required to run a linked report.

Using the CreateLinkedReport method changes the ModifiedBy and ModifiedDate properties of the parent folder.


To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following code example creates a linked report:

Imports System
Imports System.Web.Services.Protocols

Class Sample
   Public Shared Sub Main()
      Dim rs As New ReportingService()
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials
      Dim prop As New [Property]()
      prop.Name = "Description"
      prop.Value = "A new linked report"
      Dim props(0) As [Property]
      props(0) = prop
         rs.CreateLinkedReport( _
         "Employee Sales Report2", "/SampleReports", "/SampleReports/Employee Sales Summary", props)
      Catch e As SoapException
      End Try
   End Sub 'Main
End Class 'Sample

using System;
using System.Web.Services.Protocols;

class Sample
   public static void Main()
      ReportingService rs = new ReportingService();
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

      Property prop = new Property();
      prop.Name = "Description";
      prop.Value = "A new linked report";
      Property[] props = new Property[1];
      props[0] = prop;

         rs.CreateLinkedReport("Employee Sales Report2", "/SampleReports",
            "/SampleReports/Employee Sales Summary", props);

      catch (SoapException e)
See Also

ReportingService Class

Reporting Services Web Service Library

© 2015 Microsoft