Home > database >  When printing out of the memory, thank you for your help
When printing out of the memory, thank you for your help

Time:10-08

Long job

Job=PrintOpen ()
For li=1 to 1000
...
PrintDataWindow (job, dw_EmpDetail)
.
End the if
PrintClose (job)


Print - 372, when there is out of memory error, unable to continue,



Later changed the way
Long job
For nn=1 to 10
Job=PrintOpen ()
For li=1 to 100
.
PrintDataWindow (job, dw_EmpDetail)
.
End the if
PrintClose (job)
Next

The front three normal print 100 pages, the fourth page 100, when printed to the page 72, appeared out of memory error,


Trouble you see, is what reason, how to solve, thank you



CodePudding user response:

Who is basically see the error quote, if is one of your quote, need to check your own code, the performance of smaller,
In addition if the printer driver, the more likely, change a driver or a print, emptying the print task,

CodePudding user response:

With dw_EmpDetail directly. The print () a try, if the number of print is bigger, try not to control the print task,

CodePudding user response:

This program, just want to print, using PDF virtual printer, directly generate a print file, PDF documents, now found in other XPS document writer is also a similar mistake,

Don't know is there any other way to solve, thank you for your reply,

CodePudding user response:

PB print task cache limitation, can only use the API to deal with to clear the cache

CodePudding user response:

Please comment, and deals with how to use the API clear the cache, thank you for your reply!

CodePudding user response:

OUT OF MEMORY may be your table when the data from a large amount OF data, you can check your SQL statements define constraint definition and data window (
In addition, you may be the printer driver is not compatible, with the use of compatible rather than a dedicated driver files, memory application part will be easy to get wrong, lead to prompt
There is also a situation, it is your C disk files too much, the main drive cache is not enough,
In addition, some printer they can apply for a lot of memory, at this time, consider to print to PDF file, and then use the printer to print the PDF file

CodePudding user response:

What is your main purpose of this feature?
  • Related