Print Page | Close Window

ReportDocument.ExportToReport Diskfull error

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=17036
Printed Date: 29 Apr 2024 at 11:46am


Topic: ReportDocument.ExportToReport Diskfull error
Posted By: Manulak
Subject: ReportDocument.ExportToReport Diskfull error
Date Posted: 15 Jul 2012 at 10:33pm
Hi
I have a web service solution to export a crystal report to a PDF or a RTF file. The solution is designed with MS Visual Studio 2010 using Crystal Report version 13.0 for VS. At runtime, we are using Crystal Runtime version 13.0.1 .net redistributable files (both 32bit and 64bit) and Crystal 2011 layouts. The web service runs in IIS 7.0 server.

The issue we have is that we get an “Error in File <filename>{FE8386FD-0A8D-4CAD-A8B0-00BADD402108}.rpt: Disk full” from the ReportDocument.ExportToStream method, if 2 or more simultaneous calls are sent to export the report to PDF. The following is the code I use,

Private Stream getPDFReportStream(String path, ……)
{
   ReportDocument doc ;
   doc.load(path);
   ……
   Stream exportStream = doc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
   ……
   doc.Dispose();
   Return exportStream;
}

I tried used the overload for ReportDocument.load method and tried sending the OpenReportMethod.OpenReportByTempCopy and OpenReportMethod.OpenReportByDefault but it didn’t help. The following are the stack traces,

7/10/2012 10:19:46 AM - === In getPDFReportStream catch :
Error in File PurchaseOrderPrintRep {FE8386FD-0A8D-4CAD-A8B0-00BADD402108}.rpt:
Disk full.
==== Source : CrystalDecisions.ReportAppServer.DataSetConversion
==== Stack Trace :
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
at ReportService.GetPDFReportStream(String FileName, String ParameterValues, String LangCode)
in c:\inetpub\wwwroot\CRWebSetup\App_Code\Service.cs:line 159
==== Target Site : Boolean ThrowDotNetException(System.Exception)
=== BaseException : System.Runtime.InteropServices.COMException (0x80000211):
Error in File PurchaseOrderPrintRep {FE8386FD-0A8D-4CAD-A8B0-00BADD402108}.rpt:
Disk full.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)


I heard that the crystal report engine doesn’t support multithreading. Is this true? Can this be causing the above issue or something else? If so, how can I resolve it?

Thank you a lot in advance. Any answer would be really appreciated...!
Regards;
Manulak



Print Page | Close Window