title: Setting a relative path in crystal reports
body: <p>I have written the following code,</p>
  
  <pre><code>CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
  report.Load(@"C:\Users\XXX\Desktop\Backup1\Project\ReportsFolder\ReportSalesInvoice.rpt");
  </code></pre>
  
  <p>Report works fine for the above code But I want to give a relative path so I can install it in several machines without changing the path.
  I have also tried the following paths</p>
  
  <pre><code>string loc = AppDomain.CurrentDomain.BaseDirectory;
  string loc2 = Application.StartupPath;
  string loc3 = Application.UserAppDataPath;
  string loc4 = Application.CommonAppDataPath;                
  </code></pre>
  
  <p>Used them as,</p>
  
  <pre><code>report.Load(loc2 + "\\ReportSalesInvoice.rpt");
  </code></pre>
  
  <p>But the file cannot be accessed.Please Help.</p>