.Export Function Crashing Database

M

Mike C

I have report with a chart on it. I'm able to export the chart as a jpg by
placing the code below in the OnFormat event.

....
ChartSpecialtyPie.Export "c:\GraphTest.jpg", "JPEG"
Me.ChartSpecialtyPie.Action = acOLEClose
End Sub

The report opens fine and the jpg appears exactly where it should in the
file system. However, when I try to close the report, I keep getting an error
below:

The operation on the chart object failed.
The OLE server may not be registered.
To register the OLE server, reinstall it.

The database then closes out. Any thoughts on this would be fantastic. Thanks!

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top