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导出时转换XML文件的步骤_Reporting Services - Fatal编程技术网

Reporting services 从SSRS导出时转换XML文件的步骤

Reporting services 从SSRS导出时转换XML文件的步骤,reporting-services,Reporting Services,我需要在导出时转换SSRS报告的XML格式。我尝试了一些XSLT来实现这一点,但没有得到去干燥的输出 我的报告的默认XML格式是 <?xml version="1.0" encoding="utf-8"?> <Report xsi:schemaLocation="Test http://reportserver? %2FTest&amp;rs%3AFormat=XML&amp;rc%3ASchema=True" Name="Test" xmlns:x

我需要在导出时转换SSRS报告的XML格式。我尝试了一些XSLT来实现这一点,但没有得到去干燥的输出

我的报告的默认XML格式是

<?xml version="1.0" encoding="utf-8"?>
   <Report xsi:schemaLocation="Test http://reportserver?    %2FTest&amp;rs%3AFormat=XML&amp;rc%3ASchema=True" Name="Test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="Test">
  <Tablix1>
  <Details_Collection>
  <Details Country="India" Sales="1000.0000" />
  </Details_Collection>
  </Tablix1>
</Report>

需要输出(报告标签已移除,外观应更改如下):


“印度”
1000
比尔


洗礼

我发现了转变的第二部分:

<Details Country="India" Sales="1000.0000" /> 

->
 < Country>"India"</Country>
 <Sales>1000.0000</Sales>

->
“印度”
1000
为此,应使用TexBox属性

  • 在设计器模式下按数据字段
  • 查找DataElementOutput-设置输出
  • 查找DataElementStyle-设置元素
  • 在那之后,你会得到你想要的。 但转变的第一部分我做不到。
    我是说-remove
    有人能帮我吗?
    
    <Details Country="India" Sales="1000.0000" /> 
    
    ->
     < Country>"India"</Country>
     <Sales>1000.0000</Sales>