LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

report generation toolkit

Solved!
Go to solution

How to add any image in the footer of a word report? Please anyone help.

0 Kudos
Message 1 of 20
(3,854 Views)

You can use insert object in the advanced pallet in report generation toolkit.

First you need to define a bookmark in your template file (in your case inside the footer, I have called it picture). It only seem to work for bmp's for some reason! For everything else it places a link in the document!

 

test_bookmark.png

Hope this helps.

Regards,

aCe


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 20
(3,811 Views)

Hi aCe,

Thank you for your reply. But I still have problem with the code. I have attached my code herewith. I have given 'picture' and 'footer' both in the bookmark but same error is giving for both the cases. The error code is -41110 and the error statement is: NI_ReportGenerationToolkit.lvlib:Word_Get_Range.vi -> NI_Word.lvclass:Word Insert Object.vi -> Untitled 1

How to resolve it? Please help.

Download All
0 Kudos
Message 3 of 20
(3,788 Views)

Hi,

 

 

You can use macros to put images into the Header/Footer. Before running this please enable the macros in the word.

 

In Word 2007

*Go to Word Options.

*Select Trust center.

*Click on Trus center settings..

*Enable the marked one in the "macros.bmp" attached.

 

And try running the image_footer.vi.

 

 

Regards,

Roopesh

Download All
0 Kudos
Message 4 of 20
(3,783 Views)

Hi RoopeshV,

 

The problem is still there. After enabling the Macros, I run the program but now a problem has been occured in Microsoft Visual Basic. I have attached the problem.

0 Kudos
Message 5 of 20
(3,768 Views)

Hi,

From the block diagram it looks like you haven't wired a template file.

-41110 occurs when it can't find the bookmark.

Post a simplified vi if you can.

Regards,

aCe


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 6 of 20
(3,763 Views)

Hi  LSG,

 

The version you are using is MS OFFICE 2000/2003. this does't support Images in Header of footer. Please try with the Office 2007 and above.

 

 

Regards,

Roopesh

0 Kudos
Message 7 of 20
(3,758 Views)

Hi aCe,

 

I have attached the vi herewith.

0 Kudos
Message 8 of 20
(3,755 Views)

Hi RoopeshV,

 

Is not there any other option to give any image/logo in header/footer in MS office 2000?

0 Kudos
Message 9 of 20
(3,752 Views)

Hi,

I cant confirm or dismiss Roopesh's statement that word 2003 or earlier footers cannot take images.

Can you please try and replicate the code i posted earlier, you should be able to drag and drop that on to your block diagram. If you are using an earlier version of labview, please let me know. You need to create a word template *.dot with bookmarks in it or else it would not work.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 10 of 20
(3,743 Views)