Jump to content
Software FX Community

How to copy a chart programmatically to MS Word?


User (Legacy)

Recommended Posts

I forgot to mention a few details. I use ChartFX Client-Server 5.0 in VB6.

I've tried chart.export METAFILE, but this doesn't seem to work, I don't get

the picture in Word.

"Henk Borsje" <hjborsje@alert-systems.com> wrote in message

news:7qxwY4dBEHA.200@webserver3.softwarefx.com...

> Dear tech support,

>

> I have to copy a large number of charts to a MS Word document. The user

> normally copies a chart to the clipboard, followed by a paste in Word. Is

> there a way to do this programmatically?

>

> Thanks for your help.

>

> Henk Borsje

>

>

Link to comment
Share on other sites

The part were you copy it to the clipboard is pretty easy simply call:

chart.Export CHART_METAFILE, ""

This will export the chart to the clipboard as a metafile.

Inserting it into a word document will require automation with MS Word that

falls out of the scope of my expertise.

--

FP

Software FX

Link to comment
Share on other sites

  • 1 month later...

Softwarefx KB article Q1381089 shows some rudimentary code to export the 

chart to MS Word. I haven't tested it.

- Jon

SoftwareFX Support wrote:

> The part were you copy it to the clipboard is pretty easy simply call:

>

> chart.Export CHART_METAFILE, ""

>

> This will export the chart to the clipboard as a metafile.

>

> Inserting it into a word document will require automation with MS Word that

> falls out of the scope of my expertise.

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...