I am automatically creating a PDF from some of our reports in a month-end process. I am running into a problem where
Use the Application.StartupPath property, it always points to directory where your EXE is located:
using System.IO; ... string exeFolder = Application.StartupPath; string reportPath = Path.Combine(exeFolder, @"Reports\report.rdlc");
You'll want to make sure the report gets copied to your bin\Debug\Reports folder as well so it will work in the IDE. Use xcopy /s /d in a post-build event to get the file(s) copied.