[英]Reporting Services - Rendering to Excel in C# WinForm
我有一個WinForms應用程序,可以調用並顯示許多報告服務報告。 我可以打電話給
LocalReport.Render("Excel", null, out mimeType, out encoding, out filenameExtension, out streamids, out warnings);
方法-寫入byte []數組,但會引發異常
尚未定義報告定義的來源。
有誰知道如何解決這個問題?
將以下參數用作第二個參數。
<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>
並且您需要使用以下方式設置報告:
var MyInfo = MyRS.LoadReport("/" + reportPath, null);
var ReportDeviceInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
String ExtensionValue = String.Empty;
String EncodingValue = String.Empty;
String MimeTypeValue = String.Empty;
Warning[] WarningValue = null;
String[] StreamIDsValue = null;
var Result = MyRS.Render("Excel", ReportDeviceInfo, out ExtensionValue, out EncodingValue, out MimeTypeValue, out WarningValue, out StreamIDsValue);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.