0
我想通過Excel VBA從此主頁下載圖片。如何從HTMLCanvasElement下載圖片?
我可以得到一個HTMLCamvasElement,但我無法下載圖片到我的本地文件夾。
請讓我知道如何下載這些圖片。
這裏是我的代碼..
============================
子test_fill_form()
Dim url1 As String
url1 = "http://www.guitarcenter.com/Gibson-Custom-Alex-Lifeson-Les-Paul-Axcess-Electric-Guitar-106521313-i1797778.gc"
Dim oIE 'As InternetExplorer
Dim oDoc 'As HTMLDocument
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.navigate url1
'wait
While oIE.readyState <> 4: DoEvents: Wend
Set oDoc = oIE.document
'wait
While oIE.readyState <> 4: DoEvents: Wend
'--------------------------
Dim oDivElem 'As HTMLDivElement
Dim oCanElem 'As HTMLCanvasElement
Set oDivElem = oDoc.getElementById("s7zoomView1")
Set oCanElem = oDivElem3.getElementsByTagName("CANVAS")(1)
Stop
'I want to download a image file from oCanElem...
'Do I need to use method of 'toData' ??
結束子
請提供任何編碼試圖 – xlembouras
酷吉他的兄弟 –
不幸的是提供[鏈接](http://www.guitarcenter.com/Gibson-Custom-Alex-Lifeson-Les-Paul-Axcess-Electric-Guitar-106521313-i1797778 .gc)給**的產品,你正在尋找的是在這個時間售罄**。 – omegastripes