Reporting services 在ssrs中生成报表对象
我需要在运行时生成Reporting services 在ssrs中生成报表对象,reporting-services,object,Reporting Services,Object,我需要在运行时生成rdl。所以我转换了http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinitionxsd到类,我需要为Report类创建对象,因为它有很多类。我在使用对象生成报告方面遇到了困难 我不知道如何赋值 [System.Xml.Serialization.XmlAnyElementAttribute()] [System.Xml.Serialization.XmlElementAttribu
rdl
。所以我转换了http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition
xsd到类,我需要为Report类创建对象,因为它有很多类。我在使用对象生成报告方面遇到了困难
我不知道如何赋值
[System.Xml.Serialization.XmlAnyElementAttribute()]
[System.Xml.Serialization.XmlElementAttribute("Author", typeof(string))]
[System.Xml.Serialization.XmlElementAttribute("AutoRefresh", typeof(uint))]
[System.Xml.Serialization.XmlElementAttribute("Body", typeof(BodyType))]
private ItemsChoiceType37[] itemsElementNameField;
请帮帮我。有点像
List<object> items = new List<object>();
List<ItemsChoiceType37> itemChoices = new List<ItemsChoiceType37>();
//Author
items.Add("Author name");
itemChoices.Add(ItemsChoiceType37.Author);
items.Add(description);
itemChoices.Add(ItemsChoiceType37.Description);
//Width
items.Add("11in");
itemChoices.Add(ItemsChoiceType37.Width);
.
.
.
Report report = new Report();
report.Items = items.ToArray();
report.ItemsElementName = itemChoices.ToArray();
List items=newlist();
List itemChoices=新建列表();
//作者
添加(“作者姓名”);
itemChoices.Add(ItemsChoiceType37.Author);
项目。添加(说明);
itemChoices.Add(ItemsChoiceType37.Description);
//宽度
项目。添加(“11英寸”);
ItemsChoiceType37.Add(ItemsChoiceType37.Width);
.
.
.
报告=新报告();
report.Items=Items.ToArray();
report.ItemsElementName=itemschoices.ToArray();
我希望它可以帮助您出于好奇,哇,您打算将RDL呈现为报告吗?是的,我已经生成了它。不是curosity但你打算怎么办?