0
我需要在Solution Explorer中重命名它重命名SSRS.I報告可以在Visual Studio中做手工,但由於一些需求量的,我需要避免手動method.How我們可以編程在重命名一個報告SSRS 2008 ?.SSRS報告RENAME編程
我需要在Solution Explorer中重命名它重命名SSRS.I報告可以在Visual Studio中做手工,但由於一些需求量的,我需要避免手動method.How我們可以編程在重命名一個報告SSRS 2008 ?.SSRS報告RENAME編程
我只能猜測你是什麼之後。我假設你不是在談論Report Viewer控件,而是想更改傳輸到客戶端的報告文件的名稱? 您可以使用Content-Disposition HTTP標頭,如下所示:
Response.BinaryWrite(localReport.Render(reportFormat,
null, out mimeType, out encoding, out filenameExtension,
out streamids, out warnings));
switch (reportFormat) {
case "Excel":
Response.ContentType = "application/excel";
Response.AddHeader("Content-Disposition", "attachment; filename="+_your name_);
break;
case "PDF":
....