vb.net - Generic GDI+ Exception Followed by OutOfMemory Exception -
I am working on a VB.Net WinForms app. This app shows lines of production lines that the user will row down the row and print the ActiveReports documents package. This package can include up to 9 reports. The package is selected and is said to be printed, then it is sent directly to the machine's default printer using the active repairs mechanism:
rpt.Document.Print (false , False, true) These reports also use images drawn from file systems. When they move quickly through the rows, they sometimes encounter: A common error occurs in GDI +
The exception of the "System.OutOfMemoryException" type was thrown. Due to this some documents are not printed and they will have to go back and it will know who does not print. I know that the machine is not out of memory, so my impression is that the printer is completing the memory or the report is trying to use an image during printing and there is a problem creating there. If this printer is filling memory, is there any way to slow down adding documents to the print queue, or wait for at least the space to stop? I am at a loss and appreciate any suggestions.
Thank you.
I have decided to use only the caching capabilities built into ActiveReports. It seemed like reducing some problems with the printer. Before clearing the memory before adding more documents to the print queue, I also slowed the thread to make sure. Thank you.
Comments
Post a Comment