05-10-2011 09:04 PM
Hello,
I want to export Graph (not simplified image, but exactly as in front panel) to clipboard. Then, I will paste the clipboard content to MS Word document.
How can I export that graph image to clipboard?
Thank oyu.
Solved! Go to Solution.
05-10-2011 10:57 PM
Hi it can be done using an invoke node. This VI has been saved for LV 8.0
05-10-2011 11:40 PM
Thank's for your response. The ExportImage method doesn't keep the properties of the graph. In other words, exported image is simplified image. What I want is exactly the same as displayed on front panel ( color, cursor, etc).
How can I get that result?
05-11-2011 12:34 AM - edited 05-11-2011 12:42 AM
Pick "Data Operations->Copy Data" in control shortcut menu. Then go to WORD and paste it (Ctrl+V).
Copying FP image is available for all controls besides graphs.
05-11-2011 01:16 AM
Hi, sorry missed that point. The copy data option advised by hanrock can do that.
05-11-2011 01:53 AM
Ooops, I am very sorry. My question was incomplete. I want to do that programmatically.
So?
05-11-2011 03:09 AM
O.K. Then my example is to use a 2D Pic control to export the image.
05-11-2011 03:54 AM
Hi Hanraock,
I'm using LV 8.2. Would you please convert to LV 8.2? Can I run that code in LV 8.2?
Many thanks.
05-11-2011 04:09 AM
Sorry, yoppy. You need to at least use LV8.5 since the 2D Pic export invoke is introduced in LV8.5.
05-11-2011 04:46 AM
If you work on Windows, you could also use the library in the attachment of following post.