사용이 VBScript를 : 여기에
플러그인의 예 여기
HTML Table to CSV
라는 jQuery를 플러그인에 대한 링크입니다. 브라우저 설정에서 ActiveX 컨트롤을 실행하도록 허용해야한다는 점을 기억하십시오.
<script language="vbscript">
Function Export(objToExport)
ON ERROR RESUME NEXT
DIM sHTML, oExcel, fso, filePath
sHTML = document.all(objToExport).outerHTML
SET fso = CreateObject("Scripting.FileSystemObject")
filePath = fso.GetSpecialFolder(2) & "\MyExportedExcel.xls"
fso.CreateTextFile(filePath).Write(sHTML)
DIM i
SET i = 0
DO WHILE err.number > 0
err.Clear()
filePath = fso.GetSpecialFolder(2) & "\MyExportedExcel" & i & ".xls"
i = i + 1
LOOP
SET oExcel = CreateObject("Excel.Application")
IF err.number>0 OR oExcel = NULL THEN
msgbox("You need to have Excel Installed and Active-X Components Enabled on your System.")
Exit Function
END IF
oExcel.Workbooks.open(filePath)
oExcel.Workbooks(1).WorkSheets(1).Name = "My Excel Data"
oExcel.Visible = true
Set fso = Nothing
End Function
내가 수출 XSL에 대한 정확한 답을하지 않기 때문에 질문 내가 대체 솔루션을 제안했다 –
의 저자에 의해 요구로하지 엑셀 등 웹 페이지에서 쉼표로 구분 된 값으로이 플러그인 수출 파일. 질문에 대한 답변이 있으십니까? –