LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copy graph to word using EMF(WMF) format

Hi I am using Labview 7.0 and I want to copy a graph to buffer so I can paste it to word/powerpoint in a vector graph format. Is there an easy way to achieve this?
0 Kudos
Message 1 of 7
(3,746 Views)
Here is a link to past answers on this topic.

Look at the bottom of all the answers... But the short answer is "no simple method"
Message 2 of 7
(3,746 Views)
link:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000070360000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0


OOps!
Message 3 of 7
(3,746 Views)
Hi Joel,

Thanks. That is what i gathered also for making emf files (NI should really add this to their "write to file" menu btw), but I just want to copy my graph to the windows clipboard so then I can paste it to word/powerpoint as emf/wmf/jpg/etc. I know I can do
it manually (using ctrl-c) when I am in edit mode of labview window, and I ve seen people doing this copy to clipboard programmicaly using either
A) keyboard simulation and B) WINAPI library calls. However, I could not do for graphs:
A) -- could not find how to select a graph for copying,
the keyfocus property alone did not select the graph.
B) -- don't know what/how to call "copy_graphics_to_clipboard" function of kernel32

May be soneone can help me out with these?

Thanks

Egor
0 Kudos
Message 4 of 7
(3,746 Views)
There is support for jpg files. From a control reference and an Invoke Node, you can use the method Get Image. Then, on the Grpahics and Sound>Graphics Format palette, is Write JPEG File. If you look at the function called Append Control Image to Report on the Report Generation palette, you'll see how it's done in a LabVIEW report.
0 Kudos
Message 5 of 7
(3,746 Views)
>A) -- could not find how to select a graph for copying,
>the keyfocus property alone did not select the graph.

You can't select an object, and copy it at run time.
Only works when the VI is in edit mode.

With keyboard simulation, you can copy the whole front
panel to clipboard.

>B) -- don't know what/how to call
>"copy_graphics_to_clipboard" function of kernel32

There is no single function can do this.

I created VIs to capture part of the screen, and place
it on clipboard. My VIs can also place the image data
return from "Get Image" method to clipboard. Demo of
my VI can be found at:

http://gtoolbox.yeah.net

George Zou
George Zou
0 Kudos
Message 6 of 7
(3,746 Views)
> Hi I am using Labview 7.0 and I want to copy a graph to buffer so I
> can paste it to word/powerpoint in a vector graph format. Is there an
> easy way to achieve this?

Actually, LV does do this, and it can do it at runtime.

To copy any control at runtime, right click and choose Copy Data. On
the internal clipboard, LV places the object and raw binary data ready
to be pasted on an empty panel or into an existing compatible object,
like another graph. On the external clipboard, it places an image of
the control.

The image will be bitmap if the object uses complex drawing operations,
in otherwords if it uses the 3D style, and probably the dialog style of
controls. If the object is the classic control, it will create an EMF.
LV gave up on W
MF years ago since it is so limiting and incomplete.

If you are copying from a 3D, paste onto a new panel, replace with
classic -- it should preserve the data -- then copy data again and paste
into Excel, word, etc.

By the way, once you have it in one of those packages, when you select
Edit graphic I think it is, they convert it from EMF to their own
internal format. This typically goes OK, but sometimes the appearance
will change. I think that is an MS issue. Once in the other format,
you can restyle the lines, delete elements, change fonts, change colors,
etc.

Greg McKaskle
Message 7 of 7
(3,746 Views)