Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CWgraph Copy Chart to Clipboard / Measurement Studio for VB6

 
does anyone know how to copy a chart generated by the CWgraph to Clipboard in VB6 and .Net
 
thanks,
 
 
0 Kudos
Message 1 of 4
(7,731 Views)
Hey Mundo,

If you are using the CWgraph in VB 6 the method to copy the image to the clipboard is Clipboard.SetData CWGraph1.ControlImage, vbCFEMetafile.  If you are programming in .NET, I would recommend using our .NET graphs rather than the activex graphs.   All of the .NET graphs have a method called ToClipboard() that will send the graph image to the clipboard.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(7,713 Views)

thanks Pat,

Clipboard.SetData CWGraph1.ControlImage, vbCFEMetafile

works perfect.

for .Net which .NET graph are you talking about?, Measurement Studio for .Net?

Mundo

 

0 Kudos
Message 3 of 4
(7,699 Views)
Hey Mundo,

I was referring to the waveform graph or scatter graph in Measurement Studio for .NET.  These .NET graphs are assemblies rather than activex controls for use with Visual Studio 2003 or 2005.  If you have a version of Measurement Studio higher than version 7.1, it should include the ToClipboard method I was referring to for both of these graphs.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(7,685 Views)