LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVIFUNC PrintPanel prints a blank page

When I call the PrintPanel CVIFUNC I get a blank page. The return value is -12 which says out of memory. Do you know how I can get my PrintPanel function to work?
Thanks,
Donna
0 Kudos
Message 1 of 5
(3,697 Views)
Hello Donna,

In order to troubleshoot this issue, I have a few questions for you: what operating system are you working on and which version of CVI are you using?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 5
(3,694 Views)
Wendy,
Thanks for your help. I am operating on Windows XP and I am using LabWindows/CVI version 6.
Thanks,
Donna
0 Kudos
Message 3 of 5
(3,683 Views)
Hello Donna,

First, I would suggest changing the printing attributes as described in the following KnowledgeBase including setting CVI to use Bitmap Printing instead of GDI Printing and print only the visible area of the panel.

If you have LabStyle controls on your front panel, CVI automatically prints using Bitmap Printing. With Bitmap Printing enabled, much more data is sent to your printer representing each pixel of the bitmap picture, whereas with GDI printing much less data is transmitted requiring only vector style drawing commands needed to recreate the image. Due to the increased amount of data sent to the printer when Bitmap Printing is enabled some printers may either produce a blank page or hang due to insufficient memory available onboard for holding the entire image. You can try decreasing the print area size to make the size of the image sent to the printer smaller. increase the amount of memory, or enable print spooling settings in Windows to feed data to the printer as it is capable of handling it.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 5
(3,670 Views)
Wendy,
Thanks for your response. It turns out that by changing my spooling directory at C:\WINDOWS\system32\spool\PRINTERS from read-only to being able to write to the directory, all of my printpanels now work.
Donna
0 Kudos
Message 5 of 5
(3,652 Views)