LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 8.0 graph control printing problem

Hi,
I'm using Labwindows/CVI 8.0.  I have a graph control that displays an XY plot.
It uses the legend to identify the traces on the plot.
When I use the PrintPanel(...) function to print the panel everything prints correctly with the exception of the legend.
The legend's box displays but none of the text is visible.
Any ideas?
Thanks,
Kirk
0 Kudos
Message 1 of 8
(4,300 Views)
Hi, Kirk.

I haven't seen anything like that before, although it certainly sounds frustrating. Would you mind sending a small code segment that I can run to try to replicate the behavior here?

Thanks!
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 8
(4,276 Views)

Sarah,

I took the sample code that comes with Labwindows/CVI 8.0 that demonstrates the use of the legend and added a Print Panel button.

The code I started with was here:

C:\Program Files\National Instruments\CVI80\samples\userint

I added a single call to PrintPanel in the callback for a new command button as follows: 

            PrintPanel ( panel,          // int Panel_Handle,
                         "",             // char Filename[],
                         1,              // int Scaling, 1=full size 0=relative to screen
                         VAL_FULL_PANEL, // int Scope,
                         1               // int Confirm_Dialog_Box
                        );

 

I've attached a ZIP file with the code.  The new stuff is at the bottom.

Thanks for taking a look,

Kirk

 

0 Kudos
Message 3 of 8
(4,273 Views)
Hi, Kirk.

I ran your code and duplicated the problem here. It looks like a bug to me; I'll submit it to R&D and hopefully it'll be fixed in a later version of CVI. Thanks for pointing it out.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 4 of 8
(4,250 Views)

Sarah,

OK, I'm glad you were able to duplicate the problem. 

Please let me know when you have more info.

Thanks,

Kirk

0 Kudos
Message 5 of 8
(4,245 Views)

Kirk,

I had the same problem so I did the following (I used bitmap):

    SetPrintAttribute (ATTR_BITMAP_PRINTING, 1);

Walt
0 Kudos
Message 6 of 8
(4,203 Views)

Kirk,

Forgot to mention, I'm waiting on the bug fit too.

Walt

0 Kudos
Message 7 of 8
(4,200 Views)

Walt,

I just tried bitmap and it worked here too.  I thought I had tried that before, but apparently not.

The output is not quite as nice looking, but it will do for now.

Thanks for the tip,

Kirk

 

0 Kudos
Message 8 of 8
(4,188 Views)