Group:  Microsoft Access ยป microsoft.public.access.modulesdaovba
Thread: .Export Function Crashing Database

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

.Export Function Crashing Database
Mike C 17.08.2006 13:09:01
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

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net