LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set report header text

Hi,

 

Recently I upgraded to LabVIEW 2020 from LabVIEW 2011. In LabVIEW 2011 I used Standard report format to generate reports. LabVIEW 2020 does not support Standard report format so I use word format. I'm experiencing issues with report header. The new report header appears in the selected position, left, middle or right. In LabVIEW 2011 the standard report filled the whole width on top of the page, about seven lines. In word format the same header is seventeen lines placed left, middle or right depend on the string input to Set report header text vi. Is there a way to set report header text and ignore positions Left, middle or right?

 

  

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

LabVIEW, by design, is for designing Virtual Instruments for Engineering.  It is not designed as a general-purpose language to do such things as write manuscripts or reports (though it can write text files, and you could have it do spacing, line-breaking, etc.).  That being said, NI has kindly provided "hooks" into Word, Excel, and can generate HTML "reports" as well.

 

For data output designed for non-LabVIEW users, I've often used Excel, as this can present both raw (numeric) and processed (e.g. graphs, computed summaries, etc. on separate Worksheets).  I did once generate HTML code (I don't remember now what it was for), but have never ventured into trying to use Word (particularly since I no longer use Word, myself, for writing documents, including documentation for my LabVIEW code).

 

If I look at Word-Specific folder for the RGT in LabVIEW 2019, I notice the function "Word Easy Title".  This generates (by default) an 18 point Bold Transparent (?? -- this might be a mistake, I would think it should be Black) version of the input Title String (which should contain Line Breaks, coded as \n, if you want them), followed by two blank lines (coded as \n\n).  You can use the Font input to Easy Title to change the Report Font to, say, 12 point if 18 point is too big.

 

Based on my experience with Excel, I definitely recommend the "Easy" series of the Report-specific folder over the more general "Append xx to Report" functions at the top level of the RGT Palette.

 

I'd be interested in hearing how the RGT's Word functions work for you.

 

Bob Schor

 

0 Kudos
Message 2 of 3
(1,049 Views)

Bob,

 

Thank you for your recommendation. I tried to use "Easy" series of the Report-specific folder the issue is that Report header appear on the front page only, I want it to appear on all pages. For single page report it worked but not for multiple page data report.

 

Thank you,

 

Hapa_Kazi   

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