我正在尝试在 SSRS 中设置一个带有订阅的报告,以将一些数据导出为 XML 文件,以便可以将其导入另一个应用程序。然而,报告元素正在导致整个事情崩溃。
我的输出是:
<?xml version="1.0" encoding="utf-8" ?>
<Report xsi:schemaLocation="BO http://reportserver?%2FBO.BILLING%20BacklogTest&rs%3AFormat=XML&rc%3ASchema=True" Name="BO" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="BO">
<ForecastGroups>
<ForecastGroup>
<Code>BO.BILLING</Code>
<ActualOutstandingTasks>
<TimeStamp>2015-09-25T00:00:00</TimeStamp>
<ArrivalPeriods>
<ArrivalPeriod>
<StopTime>2015-09-25T00:00:00</StopTime>
<StartTime>2015-09-24T00:00:00</StartTime>
<Tasks>2074</Tasks>
</ArrivalPeriod>
</ArrivalPeriods>
</ActualOutstandingTasks>
</ForecastGroup>
</ForecastGroups>
</Report>
除非我手动删除报告元素,否则它不起作用。我需要输出为:
<?xml version="1.0" encoding="utf-8"?>
<ForecastGroups>
<ForecastGroup>
<Code>BO.BILLING</Code>
<ActualOutstandingTasks>
<TimeStamp>2015-09-25T00:00:00</TimeStamp>
<ArrivalPeriods>
<ArrivalPeriod>
<StopTime>2015-09-25T00:00:00</StopTime>
<StartTime>2015-09-24T00:00:00</StartTime>
<Tasks>2074</Tasks>
</ArrivalPeriod>
</ArrivalPeriods>
</ActualOutstandingTasks>
</ForecastGroup>
</ForecastGroups>
然后它工作正常。SSRS 中有没有办法阻止报表元素呈现?
谢谢,格雷维尔