0
我和我的團隊試圖創建訂閱並導出CSV格式的報表,但我們需要將字段分隔符從「,」(這是默認值)更改。我們如何將設備信息以編程方式傳遞給SSRS(2008)訂閱(C#)?如何將設備信息傳遞給SSRS訂閱?
我們有一個對ReportingServices2005的Web引用。這是和示例的我們的代碼:
string report = "Insert report here";
string desc = "A description";
string eventType = "TimedSubscription";
string matchData = "<ScheduleDefinition>...</ScheduleDefinition>";
string RenderFormat = "CSV";
ParameterValue[] reportParameters = GetReportParameters();
var extensionParams = new List<ParameterValue>();
extensionParams.Add(new ParameterValue
{
Name = Constants.EXTENSIONPARAMRENDER_FORMAT,
Value = RenderFormat
});
extensionParams.Add(new ParameterValue
{
Name = Constants.EXTENSIONPARAMFILENAME,
Value = FileName
});
// Insert more params here...
ExtensionSettings extSettings = new ExtensionSettings();
extSettings.ParameterValues = extensionParams.ToArray();
extSettings.Extension = Constants.EXTENSIONREPORTSERVERFILESHARE;
try
{
ReportingService2005 rs = new ReportingService2005();
rs.CreateSubscription(
report, extSettings, desc, eventType, matchData, reportParameters);
}
catch (SoapException e)
{
// Handle the exception
}
我們能不能找到一種方法,通過該設備的信息,這是甚至更多鈔票?
太好了!謝謝! – Unlimited071
不客氣:) – davmos