Jump to content
Software FX Community

How to export a graph to clipboard


User (Legacy)

Recommended Posts

Hi, there,

I am a user of ChartFX98 and work with VC++ and VB.

When I use VB, I can export a graph to the clipboard as follows:

ChartFX1.Export(CHART_METAFILE, "")

But, in VC++, I cannot export.

If I write as follows:

m_ChartFX.Export(CHART_METAFILE, "");

then I get an error message "CHART_METAFILE: undeclared identifier".

Also,

m_ChartFX.Export(2, "");

produces another error message.

I'm working with ChartFX using "insert activeX control..." at the dialog

design mode.

How can I export a graph to clipboard?

Thanks in advance.

Link to comment
Share on other sites

The following code:

m_pChartFX->Export(CHART_METAFILE,L"");

Compiles and runs as expected when inserted in one of the samples.

It seems that instead of #import you are using the MFC's wrappers, we do not

recommend this option as it is limited in functionality.

Please use the #import as described in the docs. and sample programs.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...