Search results for query: *

  1. M

    create XML element with namespace

    Hi All, I have a function. It creates an XML element: Function newElement(ByVal doc As XmlDocument, ByVal name As String, _ Optional ByVal text As String = Nothing, _ Optional ByVal pref As String = Nothing) As XmlElement Dim xmlEl As XmlElement =...
  2. M

    How to Dim a 2-dimensional array with....

    Hi All, I would like to ask: How to Dim a 2-dimensional array with the first column is string, and the second column is integer? such as: array(26, 2) = {("Apple", 11), ("Bee", 42), ("Cow", 23), ("Dog", 54)...., ("Zip", 216)} Mike
  3. M

    traverse a TreeView

    Hi All, I would like to ask how to traverse a TreeView. Private Sub showTree (TreeView t) ‘display a treeView to the screen which structure is an unknown End Sub Mike
  4. M

    Write XML

    Hi JohnH, I found it, Thank you. Mike
  5. M

    Write XML

    Hi All, I am using VB 2005 Express. I want to read/write XML file, what do I need to "imports"? According to a book (year 2002), I need to: "imports System.Xml" and "imports System.Text" and then Dim a XmlTextWriter. However, in VB 2005 Express, under Class "System", I cannot find...
  6. M

    Open Excel file

    I've solved the problem. Code is listed below if you are interested: Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Public fname As String Public inApp As Excel.Application Public inBook As Excel.Workbook Private Sub btnReadFile_Click(ByVal sender As System.Object...
  7. M

    Open Excel file

    Hi All, When I open an Excel file, I got the following runtime error: --------------------- System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147221164 Message="Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to...
Back
Top