Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find the QE property

Status
Not open for further replies.

Fabme

Programmer
May 7, 2009
3
US
Hi there,

I have a VB.NET (Framework 1.1) application used to start and monitor a process where the user selects items in a grid to generate PDF files (one for each item) via the .Export command from Crystal Reports' ReportDocument class. There are many PDF files to print (above 7000). Everything goes fine during most of the time (specially when in my development environment). But in some tests, without nothing noticeable happening, I have the following error message (at the execution of the .Export command):



System.Runtime.InteropServices.COMException (0x80041004): Cannot find the QE property.
Memory full.
Failed to export the report.
Not enough memory for operation.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()



I deal with errors using a Try...Catch, so the program continues but, after that, I start having the very same for every iteration of the loop (it happens exactly in the .Export command that creates the PDF file). Although memory is mentioned in the message, it doesn't seem to be a memory issue, as I monitored memory usage in some of those tests and there was plenty of memory available; also, this happens in a rather random fashion, sometimes at the beginning of the process, sometimes after many hundreds (or even thousands) of .PDF files have already been generated. Finally, the issue is solved by just stopping and restarting the application - until it happens again.

Can anyone help me somehow?

Thanks in advance,
Fabio Guilherme
 
Hi,'
It could be a lack of disk space for the Temp files CR generates when preparing an export( treated as memory) ...Restarting probably clears the space...
Do other apps use that server and coulkd they be taking up space as well while your app is running?




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi Turkbear! Thank you very much for your reply!

I can see that CR generates temporary files in the "C:\DOCUME~1\USER_LOGIN\LOCALS~1\Temp\" folder. Actually, I can see some .rpt files "lost" in there. But this machine has still more than 14.7 Gb available in its hard disk.

Could it be some specific problem with the Temp folder?
 
Hi,
Probably not, unless some permissions issue is at work..be sure the application is running under an account that has full rights to that directory...( Just a guess, however)



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,
Today I resolved an issue I was having with exporting to pdf from Crystal xi. I hope sharing this information will help. The message was "Cannot find the QE property" Export failed.
This occured when there were no records in the subreports. To resolve, I used the option to suppress printing if no records. Another option is using the suppress Blank section in the section of the main report where the subreports reside.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top