LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to print my own data and graphs in cvi

when i was working in cvi5.0,i wanted to print my datas in special way,something like tables or graphs,but cvi seems to provide me only the means to print panel or its controls,how can i do the print work
in my own way in cvi?
0 Kudos
Message 1 of 3
(3,349 Views)
The simplest solution at all: create a special panel with white background and the controls you need on it, fill it with your datas and print it. This way I print numeric datas and graphs in my applications without need for ANY add-on or supplementary program.

I found that creating a big panel (you will never display it on the screen) increases the aesthetic of the printout at the cost of very little more memory used: maybe this is because there is littler adjustment to fit the panel to the printed page. I am actually using 1400 pixels high and 990 wide panels.

I use List boxes to produce columned reports, by embedding in the lines the correct escape codes (well, there is a little 'try and adapt' procedure to determine the correct alignment for the repo
rt desired: I know this is boring but can give you good results with a little effort).

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,349 Views)
Another way of printing data is with the NIReport instrument driver. Take a look at the example that ships with CVI called "nirsample.prj". It shows how to send formatted information to the printer.

Good luck,
Azucena
0 Kudos
Message 3 of 3
(3,349 Views)