LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

html footer issues

Using the Set Report Footer Text.vi does not seem to create a "true" footer.  The footer text is just appended once to the end of any text or tables, rather than being located at the bottom of each page.  Additionally, the footer should only be displayed when the report is printed, not when being viewed in a browser.  (At least, this is the behavior I'd like it to have.)  Are there any recommendations that will let me accomplish this?
0 Kudos
Message 1 of 5
(3,422 Views)

Hi Snood1,

html shows exactly what you write, but there is no footer like in word. If you "only" want to show the pagenumbers if you print the document, you don´t have to use the "Set Report Footer.vi". Create your html file without thinking about the pagenumbers. The number of overall pages depends on the paper size you choose for the print out. If you open the print file and look into the html case, you see that the print function uses the IE. You can change the default settings like you want them, use File -> Settings there you can change footer and header information. see this link for additional commands http://msdn.microsoft.com/en-us/library/aa969429(VS.85).aspx. If you now save your file you have no header and footer information, but if you print your file, the internet explorer will add the settings (Pagenumber, Date) you want.

Hope it helps.

Mike

0 Kudos
Message 2 of 5
(3,404 Views)
Thanks, you're right about setting up the header/footer in IE.  That is one way to get simple header/footer capability.  However, what could one do if he wanted more advanced header/footer creation?  For instance, multiple-line footers and/or embedding test information in the header of a file.  Such information (like UUT serial number) can only be generated as the program is running, not after.  Are we starting to get into the realm of XML report generation?
0 Kudos
Message 3 of 5
(3,378 Views)
I think XML is in fact the (easiest) way to do that. The Internet Toolkit has an XML parser that allows you to read and write XML files. Windows also comes with an XML parser that you can use in LabVIEW through ActiveX.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 5
(3,359 Views)


@Eli_S wrote:
I think XML is in fact the (easiest) way to do that. The Internet Toolkit has an XML parser that allows you to read and write XML files. Windows also comes with an XML parser that you can use in LabVIEW through ActiveX.


And, don't forget about the easiest way to read and write XML data in LabVIEW 😉
0 Kudos
Message 5 of 5
(3,354 Views)