<N/A> unexpectedly appearing in report

Using Ignition 8.1.44, Vision and the reporting module 6.1.44. Trying to help my coworker with this report. Here is the design screen -

Here is the logic to save it -

And here is what is saved -

What is confusing most to me is we also have a print button that prints the report to a printer (by calling .print() on the report viewer component) - and that comes out correctly, without the bold <N/A> overwriting the date.

I don't see anything egregious or obvious here. Does anyone know what is going on?

Any extraneous text fields in the table header, by chance? Or weird formatting characters after the static text for Report for Serial Numbers?

As an aside, though it may help fix this issue - you can have "runs" of formatted text within a single text field, so instead of having a bunch of text fields that you're trying to align "just so" you could just have e.g. the whole second line as one text field. You can even use programmatic padding via keychains inside @:

1 Like

<N/A> is the default value the reports show for null. Any chance there is another line in the header's text box that is out of view in the report designer?

A couple of ideas to try (Both probably only make sense if there is another @key@ in the text box.

Open the pdf in Chrome or Edge instead of Adobe Reader. I've recently had some pdfs that render correctly in Chrome but have overlapping objects when opened in Adobe Reader.

Does it look the same if you use event.source.parent.getComponent('Report Viewer').saveAsPDF() instead of .getBytesPDF?

1 Like