Method 'ExportPicture' of object 'ChChartSpace' failed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all!

I try export PivoChart but i receive only his message error "Method
'ExportPicture' of object 'ChChartSpace' failed"

My code is:

Form_frmRV_goal.ChartSpace.ExportPicture CurrentProject.Path & "\chart.gif"

I'm using Access 2002

tks for any help
 
I'm using this references, in this order:
Visual Basic for Applications
Microsoft Access 10.0 Object Library
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft ActiveX Data Objects 2.8 Object Library
Lotus Notes Automations Classes
Microsoft Office XP Web Components

Apear all ok, but the error message continue: "Method 'ExportPicture' of
object 'ChChartSpace' failed"

This is my complete code:

Private Sub Command55_Click()

Dim frm As Access.Form
Dim Goal As OWC10.ChartSpace
Set frm = Me.frmPivotChart.Form
Set Goal = frm.ChartSpace
Goal.ExportPicture "C:\PivotChart1.gif", "GIF"

End Sub

The error is at the last line...Please...Help!!
 
Back
Top