LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code 0x80020009 when printing with easy text report

Running LV2010 on W7.  I have a vi that uses the easy text report to print text to the default printer.  When it runs, it gives an "undefined" error code, 0x80020009.  This vi was copied directly from another vi that is in the same project that prints different data.  The original works fine, but this one gives the error.  I have looked at the data and it seems that both have the same data format, although the non-working one has less data.  Not really sure where to go with this.  I have deleted the easy text report and pulled a new one from the functions palette, but that didn't work.  Any idea's?  Thanks.

0 Kudos
Message 1 of 7
(3,723 Views)

Can u show some code?  It's impossible to debug words :[

0 Kudos
Message 2 of 7
(3,720 Views)

See attached.  There is some default data in the data input terminal.

0 Kudos
Message 3 of 7
(3,718 Views)

I replaced the text to print with just some plain text and the print worked... so the problem seems to be in the text that I'm generating.

0 Kudos
Message 4 of 7
(3,716 Views)

Is there a limit to the length of the text?  I'm showing 983063 characters in length.

0 Kudos
Message 5 of 7
(3,715 Views)

It appears to be a string length issue.  I've shortened it by artificially limiting how many times the for loop iterates, and it works.  The string can be greater than 65535 characters, but how much bigger, I don't know.

Message 6 of 7
(3,714 Views)

This error is also created when renaming a tab in EXCEL if the name attempted is greater than 31 charactors. 

0 Kudos
Message 7 of 7
(3,653 Views)