LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference in the appearance of HTML vs. Standard reports generated with the Report Generation VIs?

When I generate a "Standard Report" (to a printer or PDF) with the attached code, the output looks like this:

Standard Output.png

 

If I instead use the same code to generate an HTML report, the output looks like this:

HTML Output.png

 

Can anyone explain why the HTML output has had the extra spaces stripped out of it?

Is there anything I can do to prevent it from happening?

 

VI is attached (LV v11.0.1f2) but this is what it looks like...

Print_Test.png

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

If you look at your html source the spaces are there. The problem is the way html is rendered it removes the spaces. You will either need to add in <pre> </pre> tags to tell the browser to include those spaces, or insert the string &nbsp; which the browser interprets as a single space.

 

Regards,

 

Steve

Message 2 of 3
(2,560 Views)

@SteveBale wrote:

If you look at your html source the spaces are there. The problem is the way html is rendered it removes the spaces. You will either need to add in <pre> </pre> tags to tell the browser to include those spaces, or insert the string &nbsp; which the browser interprets as a single space.

 

Regards,

 

Steve


OK, thanks. I guess I'll end up living with it the way that it is because

  1. using either method seems to also have the side effect of causing the output to become double-spaced and
  2. the only reasonable place to implement the change (so that it did not also impact the "standard report" output) would be within the report generation VIs and I'd rather not be modifying them.
0 Kudos
Message 3 of 3
(2,553 Views)