我有启动 ActiveX 以下载文件的 html。
我希望通过 C#/.NET 完成,而不是使用 Internet Explorer 下载文件
HTML 如下所示:
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<OBJECT ID="o" CLASSID="CLSID:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" CODEBASE="https://YYYYYY/grTransferCtrl.cab#version=5,0,0,32">
</OBJECT>
<SCRIPT LANGUAGE=VBScript FOR=window EVENT="onLoad()">
On Error Resume Next
o.Persist "AAA"
o.Persist "BBB"
o.Persist "CCC"
bRetVal = o.Launch()
If(Err.Number > 0 Or bRetVal = False) Then
msgbox "There was an error launching File Transfer Manager.",0,""
End if
</SCRIPT>
</HEAD>
<BODY></BODY>
如何直接从我的 C# 应用程序启动下载?