LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrintPanel attribute error

When I use,
    PrintPanel (panelHandle, "", 1, VAL_VISIBLE_AREA, 0);
I get "Library function error (return value == -90)
        
I know my panelHandle is correct what else could be wrong??

Message Edited by rmoscoso on 08-29-2005 01:39 PM

0 Kudos
Message 1 of 3
(3,072 Views)

Hello rmoscoso,

Usually that error occurs when a print attribute of a control or panel is out of bounds.  Do you call SetPrintAttribute in your code?  Also, do you have a default printer set up for your machine, because by passing an empty string to PrintPanel, it will direct the result to your default printer. 

Thanks

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(3,058 Views)
Hello rmoscoso,
 
In addition, can you reproduce the problem with a small example that just loads your panel and prints it?  The problem might be occuring due to certain settings on your panel.  Also, it might be helpful to include information about your printer including resolution, etc.
 
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(3,048 Views)