【问题标题】:How to change the Web Reference URL through TextBox如何通过 TextBox 更改 Web 参考 URL
【发布时间】:2014-08-14 11:48:40
【问题描述】:

我正在创建一个项目来下载部署在 ReportServer 上的所有 RDL。

我在 Codeproject 上找到了这篇文章,它运行良好。 http://www.codeproject.com/Articles/339744/SSRS-Downloading-RDL-Files

现在我要做的是在设计器上添加一个文本框,用户将提供报告服务器 URL

http://servername/reportserver

我在这里找到了一个相关的问题: How to change Location(Url) of a Web Service and Update Web Reference programmatically?

但我无法获得有关该主题的 MyApi。

总而言之,我的问题是如何通过用户提供的文本框字段上的 URL 值更改 Web 服务的“Web 参考 URL”

编辑:我正在使用 Visual Studio 2012!

【问题讨论】:

    标签: c# reporting-services rdl web-reference reportserver


    【解决方案1】:

    我对问题的搜索误导我更改 app.config、更改 Settings.Designer.cs 等。

    但解决方案是添加一行。

    ssrsWebService.ReportingService2010 rs = new ssrsWebService.ReportingService2010();
    rs.Url = ReportServerURLTxt.Text + "/ReportService2010.asmx";
    

    如果不检查报告服务上的可用设置,我觉得很愚蠢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-20
      • 1970-01-01
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 2012-12-10
      相关资源
      最近更新 更多