Crystal: Reports For .net Framework 2.0
using (MemoryStream ms = (MemoryStream)reportDocument.ExportToStream(ExportFormatType.PortableDocFormat))
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: using (MemoryStream ms = (MemoryStream)reportDocument
Just don’t start any new projects with it. Please. Systems architect with 18 years of .NET experience, including 7 years supporting Crystal Reports in production. Currently helping enterprises modernize legacy reporting stacks. For non-HTTP scenarios (Windows Services)