1

I have created a custom function for multilingual support. Inside this function I use path of the language files as an variable. But when I call Directory.GetCurrentDirectory() , System.AppDomain.CurrentDomain.BaseDirectory or other methods to get the report template file location it always returns the path of the 'TelerikReportDesigner.exe' and where the dll file resides (C:\Program Files (x86)\Telerik\Reporting Q1 2016\Report Designer). But my template file resides on another folder(ex:- E:\Reports..) How can I get the template file location inside the custom function???

Janitha Tennakoon
  • 856
  • 11
  • 40

1 Answers1

1

Have you tried Assembly.GetExecutingAssembly().CodeBase ? The full code sample can be referenced here: How do I get the path of the assembly the code is in?

Community
  • 1
  • 1
Yemoku
  • 126
  • 1
  • 5