|
The error says:
Line: 10
Char: 1
Error: Object required: 'Document.All(...)'
Code: 800A01A8
Source: Microsoft VBScrpt runtime error
Line 10 is this line:
objIE.Document.All("Email").Value = "brinasas@yahoo.com"
Any response you can give me will be greatly appreciated.
|
|
|
|
|
That would be because Document.All("Email") didn't return an object. This means you cannot set the Value property of an object that doesn't exist.
You may want to check to see if that code returned an object before you try and use it.
Dim c
Set c = objIE.Document.All("Email")
If c Is Nothing Then
' A control called "Email" doesn't exist in the page!
' Handle this condition appropriately.
Else
c.Value = "blah@somewhere.net"
End If
|
|
|
|
|
Read This[^], it may help.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
|
This may be more of printer issue than a VB.Net issue.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Pick a single forum, don't ask more than once.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Hi;
Please help me in VB6 programming,
for: [On/Off] 2#LEDs by 1#USB port.
source code & simple Electronic Interface.
Thans a lot.
ufo4444p239@yahoo.com
|
|
|
|
|
Not going to happen.
First, VB6 is dead and has been for quite some time. Move to VB.NET.
Second, Google for "VB6 control LED USB" and see what you get. You can do this yourself because it's probably going to be the very first thing anyone else is going to do for you, or not.
|
|
|
|
|
If he pays enough, he will get also VB6 support. I will call it not a fee, but a compensation for pain and suffering.
I cannot remember: What did I before google?
|
|
|
|
|
No help will be coming, VB6 is no longer used or supported.
If you are being taught this, and have paid a fee, demand your money back, right now!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
je veux savoir comment je peux passer des éléments sélectionnes dans un listbox à un datagrid
|
|
|
|
|
This is an English speak site. This is what Google Translate thinks you said:
I want to know how I can pass the selected items in a listbox to a datagrid
The easiest way to do it would be if you bound the datagridview to the same source you bound your ListBox to.
If not, then you'll have to iterate over the items in the listbox and add them to the rows or a manually setup DataGridView or to a DataTable object and bind your DGV to that.
|
|
|
|
|
I want to read excel sheet cells.
I have written the following code in Visual Basic 2005 in single desktop environment with no net connectivity:
Public Class Form1
Public xl As New Excel.Application
Public xlsheet As Excel.Worksheet
Public xlwbook As Excel.Workbook
Public j As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Hello")
xlwbook = xl.Workbooks.Open("D:\sample.xls")
xlsheet = xlwbook.Sheets.Item(1)
TextBox1.Text = xlsheet.Cells(2, 1) ' row 2 col 1
TextBox2.Text = xlsheet.Cells(2, 2) ' row 2 col 2
xl.ActiveWorkbook.Close(False, "D:\sample.xls")
xl.Quit()
End Sub
End Class
I am getting the errors as:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Drawing,System.Diagnostics,System.Windows.Forms /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /rootnamespace:VBCheck /doc:obj\Debug\VBCheck.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"WindowsForms\",PLATFORM=\"AnyCPU\"" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /main:VBCheck.My.MyApplication /debug+ /debug:full /out:obj\Debug\VBCheck.exe /resource:obj\Debug\VBCheck.Form1.resources /resource:obj\Debug\VBCheck.Resources.resources /target:winexe Form1.vb Form1.Designer.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb"
error BC30002: Type 'Excel.Application' is not defined.
error BC30002: Type 'Excel.Worksheet' is not defined.
error BC30002: Type 'Excel.Workbook' is not defined.
How to get rid of this error?
|
|
|
|
|
|
Do you have Excel installed?
Can you post import directives?
This may help.
"You get that on the big jobs."
|
|
|
|
|
You'll have to add
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Interop.Excel
|
|
|
|
|
I am working on a VB.Net project and have been using SVN(tortise SVN) for version control.
So far I have been making commits on the whole project folder so all files that have been changed are committed at the same time and the log comments apply to all the changed files .
Is there any advantage in committing single files at a time when I have made changes to a group of source code files.
Any advice on best practice would be helpful.
This is the first project I put under version control that has really grown in file count size.
Thanks,
cages
|
|
|
|
|
What you are doing is standard. I'm not aware of any advantage to committing single files. Sometimes other developers are waiting for your changes so that could be a reason. Best to complete a single task and commit before starting another task, if possible.
"You get that on the big jobs."
|
|
|
|
|
Thanks, I will keep committing all changes at the same time. Might make less changes between each commit to reduce the information that should be included in the log.
I have not been committing changes regularly as I am the only developer.
Cages
|
|
|
|
|
It's been a few years since I used SVN (Tortoise SVN), but from what I remember is that SVN is actually quite good at posting only the necessary changes back to the repository each time you commit. For example, if you had a 100 line SQL script and you made 2 lines of change, the only thing that was actually stored back in SVN was the 2 lines of change. At least that is what I remember ... I could be wrong.
Remember that you don't need to version control the binary files created by Visual Studio, only the source files. Storing of binary files may not be very efficient in SVN.
My 2 cents.
|
|
|
|
|
I am trying to put the ribbon in the nonclient area, and have the caption buttons on top of it, and also be able to drag the form by the title bar.
I want to make the ribbon look like the picture shown here: http://ribbon.codeplex.com[^] instead of what is shown on the http://guitarsoft.codeplex.com[^] The ribbon not embeded in the non-client area
Im just a newbie and Im grateful for any help.
|
|
|
|
|
|
What is the link? its asking me to download something.
Nagy Vilmos wrote: And eat bacon. Bacon's real important for 'puters.
|
|
|
|
|
A rar-file, and it contains;
Visual Basic 6 code
I are Troll
|
|
|
|
|
Link provided by you is WebHosting related stuff and my ISP has blocked it.
Regarding your question, use Random Number to generate Random Class to assign a teacher.
|
|
|
|