Consulting

Results 1 to 3 of 3

Thread: Set oDS =CreateObject("System.Data.DataSet")

  1. #1
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location

    Set oDS =CreateObject("System.Data.DataSet")

    I am looking to create XSD schemas from Access/Excel tables. If I can get the title of this post to execute I'm on my way. The DataSet object is contained in System.data.dll [part of .NET FRamework] - but supposedly can be registered as COM with regasm.exe

    So I ran regasm system.data.dll and it reported the typelibs were registered, but the CreateObject() still fails. WassUp? Stan

  2. #2
    VBAX Expert
    Joined
    Jul 2004
    Location
    Wilmington, DE
    Posts
    600
    Location
    Stan,

    What if you create a System.Data object first, and then create the DataSet object using one of the methods from there? Kind of like how you have to start with a Scripting.FileSystemObject object before you can create, say, a Scripting.Folder object...

    Just guessing
    Regards,

    Patrick

    I wept for myself because I had no PivotTable.

    Then I met a man who had no AutoFilter.

    Microsoft MVP for Excel, 2007 & 2008

  3. #3
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    Quote Originally Posted by matthewspatrick
    Stan,

    What if you create a System.Data object first, and then create the DataSet object using one of the methods from there? Kind of like how you have to start with a Scripting.FileSystemObject object before you can create, say, a Scripting.Folder object...

    Just guessing
    No, I think it has to do with setting up for .NET<->COM interoperability. I found this:
    http://www.eps-cs.com/pdf/whitepaper_vfpcominterop.pdf

    Which illustrates creating datasets via COM... thinking the theory might apply to VBA, then not really knowing what setup is involved on a PC. Stan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •