on 01-04-2023 9:09 AM
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.....
no, they dont get deleted. but it seems, our problem is related to an unclosed stream.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you close the app do all of the files get deleted?
And add the line to close the stream
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.