LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append Multiple Control Images as a 2-D array/table ?

All

I am trying to generate a report and I wish to have the following pattern:

Image      Blank      Image

Blank      Image      Blank

Image      Blank      Image

Where I intend to place my control images at "Image" and no image at "Blank"
I thought I can build a table of control images and append but it accepts only string/numeric tables.

Is there a easier way to include images into WORD report, equivalent to: me inserting a 3x3 table in a word document, and pasting images in 1st row 1st column, 1st row 3rd colum, 2nd row 2nd colum, 3rd row 1st column, 3rd row 3rd column.

Please let me know, thanks

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 4
(2,853 Views)

Hi Maximus,

If you have the Report Generation Toolkit, take a look at examples\office\Word Examples.llb\Table with Icons.vi.  This example inserts images into certain cells of a table, and text into others.  If you don't have the toolkit, you will need to get the Range property of whatever Cell you wish you add the picture to, and call the "AddPicture" method on that Range.

Hope this helps,
-D

0 Kudos
Message 2 of 4
(2,850 Views)
That example was cool. I wish to add images to table using control reference.

I tried using the control reference to get image, save as a png and then use it to add images. Is there a way that I can use the control reference to add images to my table directly ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 4
(2,819 Views)

Hello,

There is no built-in way to add a control image to a Word cell via its control reference...the way you're doing it is probably the best way.

You can, however, add a control image to the main body of your Word document.  This is accomplished with the Append Control Image to Report.vi on the main Report Generation palette.

-D

0 Kudos
Message 4 of 4
(2,813 Views)