Quantcast
Viewing all articles
Browse latest Browse all 3636

Error Not enough memory for operation

Hi,

 

I have created a VB .Net treatment which generates a lot of PDF documents with Crystal Reports 2008.

For that, I use the method ExportToDisk of the class ReportDocument.

I generate a lot of report and when the number exceeds 30000, I get the following error :

 

Not enough memory for operation. -at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)

   at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)

   at FCS.GenerateReportBO.GenerateReport.SetPrintOptions(ReportDocument poReportDocument, String psOrientation, String psPaperSize, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)

   at FCS.GenerateReportBO.GenerateReport.PageSetup(ReportDocument poReportDocument, String psSize, String psOrientation, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)

   at FCS.GenerateReportBO.GenerateReport.SaveReportAsPdf(ReportDocument pReportDocument, String pWaterMark, String pOrientation, String pSize, Single pMarginTop, Single pMarginBottom, Single pMarginLeft, Single pMarginRight, String pFileName)

   at FCS.ReportBO.Report.SaveReportAsPdf(String pFileName, String pMKFileName)

   at FCS.SalesReportsBO.RptS14.SaveReportAsPdf(String pFileName, String pMKFileName)

   at FCS.Batch.PurgeArchive.PurgeArchive.Archive(Int32 pnIndex, Int32 pnDocumentId, String psPDFCompleteFileName, String psPDFCompleteFileNameMKE)

   at FCS.Batch.PurgeArchive.PurgeArchive.ExecuteTreatment()

 

Can you help me to solve this ?

Best Regards,

Séverine


Viewing all articles
Browse latest Browse all 3636

Trending Articles