LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode, LabVIEW and PDF Report


I am able to write Unicode (UT-16) characters in a PDF document (PDF report) with LabVIEW, but this is laborious. I try to find an easiest way.  

I don’t want to enable the Unicode support with "UseUnicode=True" in the LabVIEW.ini (because too many weird things happen).

Here are the steps:

1) If I want to use Unicode, I write the text in Notepad, and I save with the encoding Unicode.

2) I have a VI who read this text file, remove the BOM (xFFFE) and write the rest of the content in a string.

3) I copy this string in a string of the PDF Report.

4) I do the conversion, of the string, to an array of U16.

5) I generate an Unicode string with the .net constructor “mscorlib(2.0.0.0).system.string”

6) I write this Unicode string in the PDF Report.

It works well (see the attachment), but the steps 1 to 3 are laborious.  I try to find another way, but I have no idea.

0 Kudos
Message 1 of 5
(3,892 Views)

Andrew,

 

Your links that begin with ae.natinst.com are not visible to anyone outside of NI.

0 Kudos
Message 3 of 5
(3,819 Views)

Sorry about that.  After taking a closer look, they cover parts of the same content as that first article.  It is a very good resource on the subject.

0 Kudos
Message 4 of 5
(3,804 Views)

Thanks for those links HandyAndy.

I already read the “A List of Tips and Tools for using Unicode in LabVIEW” a couple of times.  Like I said, I want to  simplify those steps (without activated the Unicode support with "UseUnicode=True" in the LabVIEW.ini):
1) I write the text in Notepad, and I save with the encoding Unicode.

2) I have a VI who read this text file, remove the BOM (xFFFE) and write the rest of the content in a string.

3) I copy this string in a string of the PDF Report.

Maybe it is impossible or maybe someone have an idea.

0 Kudos
Message 5 of 5
(3,801 Views)