使VB应用程序与Web表单交互 [英] Making a VB Application interact with a webform

查看:88
本文介绍了使VB应用程序与Web表单交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使VB应用程序与Web表单交互的最佳方法是什么.

我有一个脚本,该脚本可以上载CSV文件,其中包括以下代码:

How is the best way to make a VB application interact with a web form.

I have a script that uploads a CSV file, which includes the following code:

Imports Microsoft.Office.Interop

Module Module1

    Sub Main()
        'All program functions happen in here!
        Dim oExcel As Excel.ApplicationClass
        Dim oBook As Excel.WorkbookClass
        Dim oBooks As Excel.Workbooks
        Dim macrobook As String

        macrobook = "C:\Documents and Settings\jeremy smith\Desktop\macro31_WORKS\UPLOADproducts.xlsm"


        'Start Excel and open the workbook.
        oExcel = CreateObject("Excel.Application")
        oExcel.Visible = False

        oBooks = oExcel.Workbooks
        oBook = oBooks.Open(macrobook)

        'Shell(oExcel.Run("downloadFTP"))
        oExcel.Run("downloadFTP")

        'Close and make message when done!
        oExcel.Quit()
        'MsgBox("Macro is done")
    End Sub
End Module

这会在Excel中运行一个上传CSV文件的宏.

我想要的是让命令行应用程序使Web表单处理CSV文件.

最好的解决方法,听说过热键,但不确定这是否是最好的方法,有人可以帮忙吗?

This runs a macro in Excel that uploads the CSV file.

What I was wanting was for the commandline application to make the web form process the CSV file.

How is the best way of going about this, have heard about hot key but not sure if this is the best method, can someone help?

推荐答案

这是VB.Net( Windows窗体)论坛.在下面的链接中查找正确的论坛并在此处询问.在正确的论坛中,您将获得更快,更准确的回复. :)

对于VBA,Office(VSTO),宏和VBScript问题



This is the VB.Net (Windows Forms) forum.  Look in the link below to find the correct forum and ask it there.  You'll get faster and more accurate responses in the correct forum.     :)

For VBA, Office (VSTO), Macros and VBScript Questions




这篇关于使VB应用程序与Web表单交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆