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


    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");

  • 相关阅读:
    Models(Pascal)
    Summer Plan(挖坑待填)
    C++之指针
    QuickPower快速幂
    codevs 1231最优布线问题
    颓废了1年+,今天开始勤(tui)奋(fei)啦
    l'Hopital法则
    相律
    小意外
    一种改进的动力学处理方法
  • 原文地址:https://www.cnblogs.com/linxianfeng/p/4423984.html
Copyright © 2020-2023  润新知