11-02-2011 10:46 AM
LV 2010, Win Vista, Win7.
A TABLE indicator has a popup menu that can EXPORT DATA to CLIPBOARD.
In LV2010 (and LV2010 SP1), this function does not work in an executable - it works fine in the LV Dev. system.
It was fixed in LV 2011, but we cannot move to that at present.
What's the best way to gain this functionality in LV2010?
See this JING
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Solved! Go to Solution.
11-02-2011 11:40 AM
There is a VI Server method for placing data in the system clipboard. You could capture the Menu? filter event, delete the native menu items and create your own menu with a simple command such as "Export to Clipboard". This then needs a second event to capture any user selection of the menu item.
Pulling data from the table and converting to a clipboard-friendly string format should be fairly simple, I suspect?
11-02-2011 11:50 AM
Actually, there's a simpler way. The table has a method called "EXPORT DATA TO CLIPBOARD". Apparently, the method is OK, it just doesn't get called from the menu, when in an EXE. That's a LABVIEW bug.
I added a button called "EXPORT", an event to react to a VALUE CHANGE on that button, and an INVOKE NODE to call that method. It exports the selected cells just fine.
Thanks for your idea, though.
Blog for (mostly LabVIEW) programmers: Tips And Tricks