LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

write a word report from within a cvi app

I have a CVI program that takes measurements and I would like to write and save to file a report based on that data, from within the program. I would like to include plots that were generated in the measurement program. Where can I find the most basic sample of report generation and how can I initiate it from within my CVI program?

thanks
bg
0 Kudos
Message 1 of 4
(3,458 Views)
We provide a Word Report tool with CVI (version 6.0 and above). You can find an example of how to use the tool in your CVI directory under cvi\samples\activex\word\wordrpt.prj. The example shows how to transfer data, tables, and graphs into Word.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,458 Views)
You can also use the NI Reports tools, you can generate your report and print it out. These tools will work in any computer regardless if Wors is pressent or not.

There is also an example in C:\Program Files\National Instruments\CVI70\samples\reportgen\nirsample.cws

It's just another option!

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 4
(3,458 Views)
hi
thanks... I have been looking over this project and I guess that it might be a solution, though I am somewhat sorry to have to fire-up WORD and write to it as I want this to be completely transparent to the user, and quick. That being said, I was looking for more info on the technique used in the example project for the WORD communication. As you might guess, not everything that I want to do in my report is covered by the functions in WordReport.c. Many calls are "Word_some-func-name" e.g. Word_SetProperty. I think that this is using some Automation stuff that I have no experience with and I can't find the reference manual for anything which would include a function like Word_SetProperty. (Note that this is not a specific question about set-property, that
's just an example.) But I can find info about what I think are CAO methods. Are these the same things?,.. and/or where can I get more info on the functions used by CVI that start with "Word_".
My immediate problem is that I want to open new docs with a name that I specify, and close it later... No popup menues from CVI involved, and nothing unexpected from WORD.

thanks
bg
0 Kudos
Message 4 of 4
(3,458 Views)