English 中文(简体)
利用文件目标在网页上运行
原标题:Operating on a web page using the Document Object

我有一个VB。 网上显示,需要从一个安全的内联网网站打印一个页数;该笔数字已经制作,并且正在为一个非安全网站工作,但现在,在进入印刷所需的网页之前,需要登录。

我在使用我的以下新子时,就犯了错误:“物体不指物体”:

Private Sub SiteLogin()
    WebBrowser1.Navigate("http://url/login/")

    WebBrowser1.Document.GetElementById("user").SetAttribute("value", "username")
    WebBrowser1.Document.GetElementById("password").SetAttribute("value", "mypassword")

    WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub

我从上查阅,但我似乎在网上浏览器的Im上找不到一些东西。 文件反对。 我从未使用过VB。 在此之前,我不了解这个问题,但是,我有以下分点:发展、青年和体育部从原方案开展工作:

Private Sub WebPrint()
    WebBrowser1.Navigate(strUrl)
    WebDocLoaded = False
     lblMessage.Text = "Waiting for report page to load"
    Do Until WebDocLoaded
        System.Windows.Forms.Application.DoEvents()
    Loop
End Sub

这份分册印刷了国际交易日志的某一页,因此,我的数字是,我可以使用同一个网络Browser1号标语,用于标识子,因为我不知道如何或是否应该宣布站点记录仪分局的单独物体。 这两项职能都是在网站Browser1标语界定之后提出的。

我只需要能够向一套URL提交简单的标识表格,这一信息必须硬编码(不能选择确定地点或标识,也不应存在)。 如果有另一种途径通过VB进入该网站。 净额,或者如果我需要提供更多信息,让我知道。

最佳回答
问题回答

暂无回答




相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签