File.WriteAllBytes(@"C:\Reports\output.pdf", ms.ToArray());
reportDocument.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Report"); For non-HTTP scenarios (Windows Services), use ExportToStream : crystal reports for .net framework 2.0
Unlike modern ORMs, Crystal holds connection details inside the .rpt file. Pulling from a config file requires iterating tables: For non-HTTP scenarios (Windows Services)