LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need suggestions on how to create a report using the basic LabVIEW report VIs, I dont have any other toolkit

After some test sequences I must create a report (file and hard copy) containing mostly text, but with a decent format and a company logo at the top of each page... I find the basic report generation VIs included with labview not very nice to work with and I dont have any other toolkit... I guess the best way to do it will be in htlm format, suggestions?
0 Kudos
Message 1 of 5
(3,048 Views)
Hi Pacp,

I see only one option when reading your requirements: HTML format.

With the standard report generation VI's you've two options: Standard or HTML Report Type.

Both can insert Text, Tables, Pictures and so on in the reports. The main difference between the Standard and HTML Report type is:
- Standard VI's supports printing, don't support saving
- HTML supports saving, does not support printing from LV

All this limimtations are not in the report generation toolkit, which allows you to write/read data to/from Word and Excel and which gives you much more formatting, printing and saving capabilities.

Hope this helps.

Regards,
Luca
Regards,
Luca
0 Kudos
Message 2 of 5
(3,048 Views)
Hi,

If you use HTML (for rtf it's basically the same), you can make a template
HTML file. For all the things that need to be replaced, you type a tag, e.g.
something like &time&, for the actual time.

In LabVIEW, you just open the file, and replace all tags with the proper
values. This doesn't work with sizing tables, where you need to (partially)
build the table in LabVIEW, then replace a table tag with the table string.

Regards,

Wiebe.



"pacp" wrote in message
news:50650000000800000008F80000-1079395200000@exchange.ni.com...
> I need suggestions on how to create a report using the basic LabVIEW
> report VIs, I dont have any other toolkit
>
> After some test sequences I must create a report (file and hard copy)
> containing mostly text, but wit
h a decent format and a company logo at
> the top of each page... I find the basic report generation VIs
> included with labview not very nice to work with and I dont have any
> other toolkit... I guess the best way to do it will be in htlm format,
> suggestions?
0 Kudos
Message 3 of 5
(3,048 Views)
Hi, I think this solution is going to work very good for me. However I dont have too much experience handling htlm docs (for example, how to replace the tags). Can you give me any other details or code examples? (I'm using LV 7.1), Thanks a lot!
0 Kudos
Message 4 of 5
(3,048 Views)
Hi,

This VI should do it. It's easy to understand.

It does not force any sort of tag. You can use any text as tag, but I
recommend using something weird, like #$tag, or &tag&, because it is
unlikely to occure in the normal text.

If you intend to use iterated tags (say tag "&b" is replaced by "something
&a something"), you should loop this vi in a loop until there are no more
replacements (Replaced Something = false). It's best to build this into the
attached vi, so the main program stays clear.

Sometimes it's easier to remove the for loop, and just replace one tag at a
time (or use both vi)...

Regards,

Wiebe.

"pacp" wrote in message
news:50650000000500000057D10100-1079395200000@exchange.ni.com...
> Hi, I think this sol
ution is going to work very good for me. However I
> dont have too much experience handling htlm docs (for example, how to
> replace the tags). Can you give me any other details or code examples?
> (I'm using LV 7.1), Thanks a lot!



[Attachment Replace Tags.vi, see below]
Message 5 of 5
(3,048 Views)