LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?
0 Kudos
Message 1 of 8
(4,357 Views)
Hi SciManStev,

You are using the correct VIs. In the "Set Reporter Footer Text", there are separate inputs for the left, right and center footer text. Please ensure that you are using the appropriate footer text. In the "Word Set Page Numbering", please ensure that you have used the position input to set the position of the page numbering.

I hope this helps!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 2 of 8
(4,330 Views)
I am using the correct inputs. The problem is that I can't use both the vi's at the same time. One will dominate the other. If I use the page numbering in the center, and the part # in the left, all I get is the part number.  If I reverse the order the vi's are used, I get Page 1 of Part # all on the left side regardless of where I want it. I have tried every combination I can think of, and one vi always dominates the other and gives me some sort of wierdness. Either one works great by itself, but they just don't work together.
0 Kudos
Message 3 of 8
(4,324 Views)
Hi SciManStev,

I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.

Good Luck!


Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 4 of 8
(4,312 Views)
Hi SciManStev,

Here is the same VI in LabVIEW 8.2.1.
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 5 of 8
(4,311 Views)

The way you have it does work. The problem occurs when you set the boolean to True on the Word set numbering vi. Then you get the same thing I did. It is important for me to have the page numbering say Page 2 of 26, or whatever page it is. The size of the report can vary greatly, so just entering the page would not tell me how big the report is. Try setting that boolean to true and see what happens.

SciManStev

0 Kudos
Message 6 of 8
(4,309 Views)

Hi SciManStev,

You are right and I have filed a Corrective Action Request on this. As a workaround, you can set the pagenumber (with the boolean set to true) to appear on the header and this problem doesn't appear anymore.

Thank for your discovering this issue.

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 7 of 8
(4,302 Views)
Thank you so much for your help. Unfortunately I can't use the header as my template already uses that. My company logo gets deleted when I try to use the header. The reason I need to label each page with part number and page is that as the reports can be very large, and production may print 30 or 40 reports at a time. If everything worked as I had hoped, then all the pages of a report would have the part number of what was being reported on every page, so they don't get mixed up with other reports. I have another application where I will need to add a serial number to the footer in addition to the page numbering. Due to the flaw in the way the two footer vi's work I will have to do some really fancy coding in order to accomplish my task. At least I know now that there is a flaw in the system, so I won't waste any more time trying to get it to work. Again Thank you very much for your help!
 
SciManStev
0 Kudos
Message 8 of 8
(4,300 Views)