2013-03-04 71 views
0

我的報告中有一個數據源,它從包含我需要的報告的數據的sharepoint頁面中提取RSS源。問題是,當我在報告中使用這個RSS feed時,我得到一個名爲「description」的字段,其中包含我希望能夠在我的報告中查看的所有數據。從描述字段中的數據的樣本如下:使用XML爲SSRS報告提取數據使用XML

`<div><b>Operating Unit:</b> OU1</div> <div><b>Company Name:</b> Company1</div> <div><b>Address Line 1:</b> PO BOX 9940</div> <div><b>State:</b> Texas</div> <div><b>Zip:</b> 77213-0940</div> <div><b>Phone:</b> phonenumber1</div> <div><b>Workflow State:</b> 4</div> <div><b>Hyperlink Path:</b> censor</div> <div><b>File Name Suffix:</b> censor</div> <div><b>Requestor Name:</b> User1 </div> <div><b>Approver Name:</b> Approver1</div> <div><b>Address Book Name:</b> AddressName1</div> <div><b>City:</b> HOUSTON</div> <div><b>Existing Vendor:</b> 0</div> <div><b>ApproverTemp:</b> VendorApprovers_TPR</div> <div><b>Address Book Date Str:</b> 3/4/2013</div> <div><b>Approver Date Str:</b> date</div> <div><b>Requestor Date Str:</b> date</div> <div><b>Oracle Vendor Number:</b> 111111111</div>` 

我希望能夠利用這個數據,實際上它納入我的報告,但我不知道如何從這種形式提取出來。下面是我的報告有關數據源和數據集

`<DataSources> 
    <DataSource Name="DSSPRSS"> 
     <ConnectionProperties> 
     <DataProvider>XML</DataProvider> 
     <ConnectString>Censor1;Source=http%3A%2F%2Fteams%2Edjj%2Ecom%2Fsites%2FCorpFinance%2FProcurement%2FVendorSetup%2FForms%2FCompleted%2520Addressbook%2Easpx%3FView%3D%7B18e894cc%2D6f6f%2D408c%2D9ff9%2D34764395cb82%7D%26SortField%3DDocIcon%26SortDir%3DDesc%26InitialTabId%3DRibbon%252ELibrary%26VisibilityContext%3DWSSTabPersistence</ConnectString> 
     <IntegratedSecurity>true</IntegratedSecurity> 
     </ConnectionProperties> 
     <rd:SecurityType>Integrated</rd:SecurityType> 
     <rd:DataSourceID>06a70d58-3ebb-40ba-b132-239ec4d0d79b</rd:DataSourceID> 
    </DataSource> 
    </DataSources> 
    <DataSets> 
    <DataSet Name="RSS"> 
     <Query> 
     <DataSourceName>DSSPRSS</DataSourceName> 
     <CommandText /> 
     </Query> 
     <Fields> 
     <Field Name="Title"> 
      <DataField>title</DataField> 
      <rd:UserDefined>true</rd:UserDefined> 
     </Field> 
     <Field Name="Link"> 
      <DataField>link</DataField> 
      <rd:UserDefined>true</rd:UserDefined> 
     </Field> 
     <Field Name="Published_Date"> 
      <DataField>pubDate</DataField> 
      <rd:UserDefined>true</rd:UserDefined> 
     </Field> 
     <Field Name="Description"> 
      <DataField>description</DataField> 
      <rd:UserDefined>true</rd:UserDefined> 
     </Field> 
     </Fields> 
    </DataSet> 
    </DataSets> 
    <rd:ReportUnitType>Inch</rd:ReportUnitType> 
    <rd:ReportID>ad05aef6-265e-4c8a-a0be-7d5da939fbda</rd:ReportID> 
</Report>` 

此代碼是專門爲我的表中的描述字段中的代碼。

`<CellContents> 
        <Textbox Name="Description"> 
         <CanGrow>true</CanGrow> 
         <KeepTogether>true</KeepTogether> 
         <Paragraphs> 
         <Paragraph> 
          <TextRuns> 
          <TextRun> 
           <Value>=Fields!Description.Value</Value> 
           <Style /> 
          </TextRun> 
          </TextRuns> 
          <Style /> 
         </Paragraph> 
         </Paragraphs> 
         <rd:DefaultName>Description</rd:DefaultName> 
         <Style> 
         <Border> 
          <Color>LightGrey</Color> 
          <Style>Solid</Style> 
         </Border> 
         <PaddingLeft>2pt</PaddingLeft> 
         <PaddingRight>2pt</PaddingRight> 
         <PaddingTop>2pt</PaddingTop> 
         <PaddingBottom>2pt</PaddingBottom> 
         </Style> 
        </Textbox> 
        </CellContents>` 
+0

我通過使用數據集中的sharepoint頁面功能解決了這個問題。 (Visual Studio 2008 SSRS)這很好地上傳了sharepoint頁面並解決了我的問題。 – Zi0n1 2013-04-05 19:30:05

回答

0

我通過使用數據集中的sharepoint頁面函數解決了這個問題。 (Visual Studio 2008 SSRS)這很好地上傳了sharepoint頁面並解決了我的問題。