LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with append table and Word 2010

A few months ago I developed an application that involves the Report Generation toolkit.  (LV 2009 SP1, NI Developer Suite 2010 DS1)  The application ran well using Word 2003 until the customer had to replace the computer.  Subsequently they setup a new computer with Word 2010 installed.  Now however, an appended table is not generating correctly.  The problem is that column labels are printing where the data should be.  All other non-table bookmarks are working correctly.

 

The customer tried a backup version of the template.  They also deleted and manually created the table bookmark to no avail.  Preliminarily there appears to be a problem with Word 2010 and I do not have a system with it installed to confirm. Is anyone aware of problems with Word 2010 and report generation using bookmarks?

 

Dave 

0 Kudos
Message 1 of 36
(7,100 Views)

Unfortunately Office 2010 was not supported until LabVIEW 2010 Report Generation Toolkit.  The 2009 Report Generation Toolkit was not tested with Word 2010 and therefore its very possible that Microsoft changed some things that are no longer compatible with the toolkit.  Do you experience the same problem with LabVIEW 2010?

 

For your Reference:

 

LabVIEW 2009 Report Generation Toolkit for Microsoft Office Readme

 

LabVIEW 2010 Report Generation Toolkit for Microsoft Office Readme

0 Kudos
Message 2 of 36
(7,080 Views)

Hi David,

 

I''ve just received LV v.2010 and have installed it.   However, the application has not yet been built using v.2010.  I'm also in the process of acquiring a copy of Word 2010. Your indication that I need to update Report Generation has lead me in the right direction.

 

Thanks,

 

DJ

0 Kudos
Message 3 of 36
(7,056 Views)

Great, well let us know if you get the same problem with LabVIEW 2010.

0 Kudos
Message 4 of 36
(7,026 Views)

Hello 

 

I got similar problems with the table-into-word10-with-report-generation-toolkit behaviour.

 

I'm trying to write a table with the Report Generation Toolkit (RGT) Vi's into a MS Word 2010 document. When writing the table, only the first row is correct written. The following rows of the table have also been filled with the values of the first row!?!

 

I've tried the following constellations:

LV2010, RGT 2010, Word 2010

LV2009, RGT 2009, Word 2010

 

exactly the same effect. seems really to be a word 2010 problem.

 

I found out, that the vi NI_ReportGenerationToolkit.lvlib:Word_Insert_Table.vi writes the data table into the word document. In this vi is a subvi called NI_ReportGenerationToolkit.lvlib:Word Set CB.vi which is password protected. I don't understand what this vi does, but could it be possible that there is the point to get it working?

 

Instruction to reproduce this behaviour:

  1. Open the NI Example Finder
  2. Choose the Vi Conditionally Formatted Word Table.vi under Toolkits and Modules -> Report Generation for Microsoft Office
  3. Run it, and you will see that instead of 6 different rows only one (the first) value is written into the 6 rows of the table
regards
0 Kudos
Message 5 of 36
(6,946 Views)

I'm working on finding a test machine with Office 2010 and I'll update you if I'm able to reproduce the problem or not.  

0 Kudos
Message 6 of 36
(6,919 Views)

Hello,


I have replicated and confirmed the problem with LabVIEW 2010, Report Generation Toolkit 2010 and Word 2010.  I have filed this to R&D under CAR ID #257414.  As a workaround you can manually set each cell using Word Edit Cell.vi.  I have attached a simplified representation of this unexpected behavior as well as the workaround.  Hopefully this helps everyone out!

 

Word 2010 Table FIX.png

Download All
Message 7 of 36
(6,906 Views)

If i understand correctly, the Word Set CB.vi copy the input string into system clipboard. You can try to Ctrl-V manualy into Word document after executing Easy Table.vi to see it. I have a problem to insert russian text into table...

0 Kudos
Message 8 of 36
(6,831 Views)

I replace Word Set CB.vi with this vi and it work fine now, even whith russian symbols in cell.

0 Kudos
Message 9 of 36
(6,822 Views)

And you must change keyboard layout to your local language, before execute Set_CB.vi Only after this manipulation local symbols copy to clipboard correctly.

0 Kudos
Message 10 of 36
(6,810 Views)