Hello,
with this little code, I am exporting a chart from a report to a gif-file. The code does not give any error, but after exporting the chart, when I am going to close the active report window the following error message appears and I can't close my application any more.
Errormessage:
"The operation on the OLE object (Chart) failed.
The OLE server may not be registered.
To register the OLE server please install it again"
My code:
Dim myRep As Report
Dim myChart As Graph.Chart
If Application.CurrentObjectType = acReport Then
Set myRep = Screen.ActiveReport
Set myChart = myRep.OLEUngebunden0.Object
myChart.Export FileName:=myRep.Caption & "_" & intBerichtsjahr & ".gif", FilterName:="GIF"
Set myChart = Nothing
Set myRep = Nothing
Else
Exit Function
End If
Can anybody help? I've deactivated script blocking in Norten as this is a common problem with OLE server but no change.
Thank you in advance for your assistance.
Kind regards,
Mary.h
with this little code, I am exporting a chart from a report to a gif-file. The code does not give any error, but after exporting the chart, when I am going to close the active report window the following error message appears and I can't close my application any more.
Errormessage:
"The operation on the OLE object (Chart) failed.
The OLE server may not be registered.
To register the OLE server please install it again"
My code:
Dim myRep As Report
Dim myChart As Graph.Chart
If Application.CurrentObjectType = acReport Then
Set myRep = Screen.ActiveReport
Set myChart = myRep.OLEUngebunden0.Object
myChart.Export FileName:=myRep.Caption & "_" & intBerichtsjahr & ".gif", FilterName:="GIF"
Set myChart = Nothing
Set myRep = Nothing
Else
Exit Function
End If
Can anybody help? I've deactivated script blocking in Norten as this is a common problem with OLE server but no change.
Thank you in advance for your assistance.
Kind regards,
Mary.h