LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i copy labview xy graph to MSWord with activex

I would like to paste XY Graph generated by Labview into MS word document using activex.
0 Kudos
Message 1 of 6
(3,095 Views)
I do not know the exact answer but labview can save control images as bitmaps. Perhaps there is a Word method for putting the image in a document. You will need to look on msdn.microsoft.com for more info on the exact activex call.

The Report Generation Toolkit for Word and Excel does this. You might consider saving your hair and buying the toolkit.
0 Kudos
Message 2 of 6
(3,095 Views)
Can you please eleborate on how to select a control in labview enviorment and save it as bitmap programmaticaly.
0 Kudos
Message 3 of 6
(3,095 Views)
> Can you please eleborate on how to select a control in labview
> enviorment and save it as bitmap programmaticaly.

Selection doesnt come into it. Popup on the control and create an
invoke node or a reference wired to invoke. Select the Get Image method
from the invoke method and wire up inputs to describe the image you want
out. Wire this image info to the picture control VIs to write it to a
file or do whatever you like with the image data.

Greg McKaskle
0 Kudos
Message 4 of 6
(3,095 Views)
Excellent idea. I shall try it and get back to you, if it's not much of a bother.
Regards
sam khanna
0 Kudos
Message 5 of 6
(3,095 Views)
I made you a sample vi for pic creation. if you dont have the graphics libraries you're out of luck. select bmp, png or jpg and change the file extension accordingly before you run. Personally I prefer the PNG's as they are small compared to other formats. The write bmp vi gives an error if the file path is empty, rather than pop up a save dialog - dont know why.
0 Kudos
Message 6 of 6
(3,095 Views)