6

I cannot for the life of me find an example of what I need.

I have a report that is bound by xsd. How can I take this report in c#, and set the datasource to a new xml file? Every possible way that I've tried just throws me a nice logon screen. I know the files exists in the places that it is looking, and there is obviously no username and password to an xml/xsd file.

Anyone have any kind of advice on the subject? I dont understand why this isn't done more often and why no one can give me a straight answer. I can post some example code if anyone needs.

4

1 回答 1

1

基于 XSD 的报告仅用于设计目的。

它以这种方式设计,以便我们可以填充数据集并执行数据绑定 PUSH MODEL 方式。

XSD 不能有登录信息,因为它既不是数据源,也没有任何身份验证能力。

您可以发送到报告的内容仅受可以放入数据集中的内容的限制。您可以将 XML 中的数据填充到数据集中并将其绑定到报表。

于 2012-03-21T17:04:20.737 回答