11-18-2015 08:59 AM
I am using the Report Generation toolkit, and insert a table into a Word document. This is followed by 2 graphs in which I define the sizes of the graphs. So far everything is fine, but then I insert another table, followed by 2 more graphs. The size of the grapfs is identical to the first 2, but what happens is they change size dramatically. The final vi has 12 tables, and 24 graphs, or possibly more, and what happens to the size of the graphs is completely mixed. I have eliminated everything, but when I shut off the tables completely, the graphs all responded to the size limits I put on them. I turn the tables back on, and the sizes no longer respond to the controls. I have tried getting the ActiveX references to tables after they are created, and close them before adding the graphs. This works the first time, but won't let me insert any more tables, creating an error. I have tried both the Append Table to Report vi, and the Easy table vi in the Word specific section. Results are the same. It seems somehow, I need to close a reference to a table, but still be able to add more tables. The attached document is an example of what happens. There are two for loops, containg the tables and graphs. The first loop is the Low Gain section, and the next loop is the high gain section. Every graph in the Test Document is set to 5 inches high, and 7 inches long, but the results are varried. I will continue to test possibilities, but if anyone has a suggestion, I would be most grateful.
12-01-2015 03:03 PM
Similar issues pertaining to sizing variability problems with graphs in the Report Generation Toolkit have been observed. Graph sizing problems caused by changing the zoom level in Word, saving, and generating another report, have been formally documented (CAR# 334924 and CAR# 314027). In those cases the Development team has decided to defer pursuing the fix due to whatever reasons. The issues you are seeing are likely related.
A potential workaround for your issue is to use the "Word Format Picture" function immediately following the "Word Insert Graph" function. Attached is a simple example with that workaround with instructions in the block diagram.