Skip to Content
0
Jan 04, 2023 at 09:09 AM

Exporttostream temp file left

181 Views

hi all,

crystal reports sp33

we are exporting a report to stream (pdf) with c#

like this:

using (ReportClass xyzReport = new XYZReport())
{

Stream st = xyzReport .ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
xyzReport.Close();
xyzReport.Dispose();
}

but in the users appdata\local\temp folder tmpXXX.tmp files are created (content is the pdf itself) but not deleted, the other temp files, that are created get recycled.

so the temp-directory is growing and growing.....