Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 在ssrs中生成报表对象_Reporting Services_Object - Fatal编程技术网

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但你打算怎么办?