Hi All,
I have an application that generates a Crystal Report and exports it as a PDF. It is a multithreaded Window Service built using Visual Studio 2010 and is using Crystal Report for Visual Studio 2010 version 13.0.4. I've read that the version I'm using only supports 3 CPL, meaning that only 3 reports could be generated at a time. However, when I ran my application it could generate more than 3 reports concurrently. Is the function ExportToStream not considered as 1 CPL? Below is the line of code used to generate the report:
var report = new ReportDocument();
Logger.Debug("Loading crystal report.");
report.Load(reportPath);
Logger.Debug("Generating crystal report output.");
using (Stream exportedStream = report.ExportToStream(GetExportFormatType(form)))
{
var exportedReportStream = new BufferedStream(exportedStream);
exportedReportStream.Seek(0, SeekOrigin.Begin);
reportData = new byte[exportedReportStream.Length];
exportedReportStream.Read(reportData, 0, reportData.Length);
}