码迷,mamicode.com
首页 > Web开发 > 详细

获取reporting services导出pdf的url的方法

时间:2015-04-14 09:50:09      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

public static string genRptUrl(string strRptServer, string strRptPath, string strRptName, ParameterValue[] parameters, string type)
{
string strUrl = "";

strUrl = strRptServer + "?/" + strRptPath + "/" + strRptName;
//for (int i = 0; i < parameters.Length; i++)
//{
// strUrl += "&" + parameters[i].Name + "=" + System.Web.HttpUtility.UrlEncodeUnicode(parameters[i].Value);
//}
strUrl += "&rc:Parameters=False";

if (type == "PDF")
strUrl += "&rs:Format=PDF&rs:Command=Render";
if (type == "EXCEL")
strUrl += "&rs:Format=EXCEL&rs:Command=Render";
return strUrl;
}

string urlpath =genRptUrl(SplendidCRM.Properties.Settings.Default.SplendidCRM_PDTS_ReportService_ReportingService, "HHD", "HHD Satisfaction Survey Template", parameters, "PDF");

获取reporting services导出pdf的url的方法

标签:

原文地址:http://www.cnblogs.com/linxianfeng/p/4423984.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!