ReportingService2005.CreateLinkedReport Method
Assembly: ReportService2005 (in reportingservice2005.dll)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateLinkedReport", RequestNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] [SoapHeaderAttribute("BatchHeaderValue")] [SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out)] public void CreateLinkedReport ( string Report, string Parent, string Link, Property[] Properties )
/** @attribute SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateLinkedReport", RequestNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) */
/** @attribute SoapHeaderAttribute("BatchHeaderValue") */
/** @attribute SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) */
public void CreateLinkedReport (
String Report,
String Parent,
String Link,
Property[] Properties
)
SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateLinkedReport", RequestNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) SoapHeaderAttribute("BatchHeaderValue") SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) public function CreateLinkedReport ( Report : String, Parent : String, Link : String, Properties : Property[] )
Parameters
- Report
The name of the new linked report.
- Parent
The full path name of the parent folder to which to add the new report.
- Link
The full path name of the report that will be used for the report definition.
- Properties
An array of Property objects that defines the property names and values to set for the linked report.
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:
using System; using System.Web.Services.Protocols; class Sample { public static void Main() { ReportingService2005 rs = new ReportingService2005(); 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; try { rs.CreateLinkedReport("Employee Sales Report2", "/SampleReports", "/SampleReports/Employee Sales Summary", props); } catch (SoapException e) { Console.WriteLine(e.Detail.InnerXml.ToString()); } } }