1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| Private Sub Chart_Activate()
Dim nomImage As String
Dim IE As Object
Dim Hauteur As Single, Largeur As Single
nomImage = "CHEMIN_COMPLET_IMAGE.bmp"
If Dir(nomImage) <> "" Then
Kill nomImage
End If
ActiveChart.Export nomImage, "BMP"
Set IE = CreateObject("InternetExplorer.application")
IE.navigate "about:blank"
IE.addressbar = False
IE.MenuBar = False
IE.StatusBar = False
IE.Toolbar = False
IE.Width = 1000
IE.Height = 700
IE.Left = 120
IE.document.body.innerHTML = "<html><IMG SRC='" & nomImage & "'</html>"
IE.Visible = True
Kill nomImage
End Sub |