0
我想知道是否有方法使用xml代碼生成SSRS報告。這是空白報告的XML代碼。我想設計報告並將XML代碼存儲在表中,並使用表中的xml代碼生成SSRS報告?如何使用代碼(xml)生成SSRS報告?
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<Body>
<Height>2in</Height>
<Style />
</Body>
<Width>6.5in</Width>
<Page>
<LeftMargin>1in</LeftMargin>
<RightMargin>1in</RightMargin>
<TopMargin>1in</TopMargin>
<BottomMargin>1in</BottomMargin>
<Style />
</Page>
<AutoRefresh>0</AutoRefresh>
<rd:ReportUnitType>Inch</rd:ReportUnitType>
<rd:ReportID>259e5507-dcf1-443d-884f-cfcf7816f9b2</rd:ReportID>
</Report>
報告文件是一個擴展名爲.rdl的文件,格式爲xml。 – jdweng
是的,我想將報告代碼(xml)存儲在表中並刪除報告,而不是保留多個報告。 – Ram
是和不是。您可以將rdl存儲在表中,但它會引用其他需要創建的對象。您可以使用SSRS Web服務以編程方式使用自定義RDL和預先存在的或自定義的數據源和其他引用項目創建報告。 –