Example #1
0
        static string GetReportPath(DevExpress.XtraReports.UI.XtraReport fReport, string ext)
        {
            System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
            string repName = fReport.Name;

            if (repName.Length == 0)
            {
                repName = fReport.GetType().Name;
            }
            string dirName = Path.GetDirectoryName(asm.Location);

            return(Path.Combine(dirName, repName + "." + ext));
        }