12-02-2011 12:18 AM
How to add any image in the footer of a word report? Please anyone help.
Solved! Go to Solution.
12-05-2011 11:03 AM
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!
Hope this helps.
Regards,
aCe
12-06-2011 11:38 PM
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.
12-07-2011 12:58 AM
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
12-07-2011 03:33 AM
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.
12-07-2011 03:40 AM - edited 12-07-2011 03:40 AM
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
12-07-2011 04:17 AM
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
12-07-2011 04:28 AM
Hi aCe,
I have attached the vi herewith.
12-07-2011 04:29 AM
Hi RoopeshV,
Is not there any other option to give any image/logo in header/footer in MS office 2000?
12-07-2011 04:44 AM
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.