Good Morning Guys,
Can anybody tell me how to change the name Property of a report on the Report Server?
When im using the standard Webpage, i can change all the properties i want.
But when i try the same in code. Changing the name property gets me a read-only exception.
The description does change but i actually want the name to change.
public string setProperties(string property,string value, string itemPath)
{
try
{
Property[] props = new Property[1];
Property setProp = new Property();
setProp.Name = property;
setProp.Value = value;
props[0] = setProp;
rpServer.SetProperties(itemPath, props);
}
catch (SoapException ex)
{
throw ex;
}
return "";
}
Is there an easy way around this, or do i have to solve it by creating a new report with a new name, and delete the old one?
Thanks in advance,
You need to call the MoveItem API.|||Tnx Teo,I still think its strange to have a function to set properties.
And you cant set the most important property :)
Greetings
PS: the blond girl name was to draw attention, cause this issue was quite high prio. ;) Sorry for that.|||
The name isn’t really a property in that it changes the path in the namespace. For example, you can’t have two things with the same path, etc.
PS: How disappointing :-)
No comments:
Post a Comment