【问题标题】:Get the .trdx location path inside the custom function dll file获取自定义函数 dll 文件中的 .trdx 位置路径
【发布时间】:2016-03-29 05:47:10
【问题描述】:

我为多语言支持创建了一个自定义函数。在这个函数中,我使用语言文件的路径作为变量。但是当我调用 Directory.GetCurrentDirectory() 、 System.AppDomain.CurrentDomain.BaseDirectory 或其他方法来获取报告模板文件位置时,它总是返回“TelerikReportDesigner.exe”的路径以及 dll 文件所在的位置(C:\Program文件 (x86)\Telerik\Reporting Q1 2016\Report Designer)。但是我的模板文件位于另一个文件夹中(例如:- E:\Reports..)如何在自定义函数中获取模板文件位置???

【问题讨论】:

    标签: c# telerik telerik-reporting


    【解决方案1】:

    您是否尝试过 Assembly.GetExecutingAssembly().CodeBase ?完整的代码示例可以参考这里:How do I get the path of the assembly the code is in?

    【讨论】:

      猜你喜欢
      • 2013-04-07
      • 2012-04-24
      • 1970-01-01
      • 1970-01-01
      • 2017-10-18
      • 1970-01-01
      • 1970-01-01
      • 2015-03-03
      • 1970-01-01
      相关资源
      最近更新 更多