LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing error

Hi.

I build an application that prints a drawing. From time to time I get two printing error:

-12 Out of memory!
-116 Driver printing error.

Can I prevent these errors?

Thanks.
0 Kudos
Message 1 of 3
(3,054 Views)
Hello tmaxial,

Are you printing a panel or a control? Is it a picture control, canvas, etc which contains a large bitmap or high resolution image? Which function are you using to print: PrintPanel,  PrintCtrl, etc?

If your control contains a large bitmap, the printer driver might not be able to handle it, or you might need more memory (if the bitmap needs to be scaled, the amount of memory required to scale it will be large, especially when running in 32-bit color mode).

Do you get these errors for a particular drawing all the time? If it is a particular control/uir file that always causes this problem, could you post it here?

Thanks and have a nice weekend!
Shakhina P.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 3
(3,036 Views)
Hi.

For printing I use the PrintCtrl function and the error don't appairs at the same drawing. If I give the second time the printing command for the same picture, it works. The program prints a graph control and the error appairs from time to time (every 30 page print - it's just an approximation).

Can I do something to prevent this error?

Thanks.
0 Kudos
Message 3 of 3
(3,027 Views)