Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XmlLoad Windows8

Status
Not open for further replies.

Trob70

Programmer
Sep 25, 2012
89
AU
I have a vb6 program thats been running on Win7 all ok

I am trying to get the program running on Win8..BUT have one small problem wit xmlload

The program comes up with an object error

I have xml6 in my references

Set xmldoc = New MSXML2.DOMDocument60 Have also tried Set xmldoc = New MSXML2.DOMDocument

xmldoc.async = False
xmldoc.validateOnParse = False
xmldoc.resolveExternals = False

Path = ThePage
xmldoc.Load Path
MsgBox "doc: " + vbNewLine + doc.XML

Have created a package and installed on the machine in question

Really appreciate any help with getting the xmlload working ??if at all under win8

Regards Trob70
 
What is the specific error? What line (though it is probably the object creation line)?

Windows 8 or Windows 8.1 or Windows 8.1 Update 1? They are not the same thing.

Just searching hard I can't find any suggestion that this should be a problem. I deleted my Win8.x VMs to save space so I can't try it myself right now.
 
Many thanks for your interest

The error comes when running xmldoc.Load Path

Regards Trob70
 
dilettante (MIS)

I am a bit embarrased it is now working

I had had a date included in the ThePage string

In my machine it did it correctly putting \ between the month day etc

On the other machine it seemed to replace the \ with a - and i did not notice



thedate2 = Format(Date, "yyyy/m/d")

ThePage = " & thedate2 & "/RDay.xml"

Fixed it by....

ThePage = Replace(ThePage, "-", "/")

I guess its something to do with the date format on the machine..have not come accross this before.Will look into it..

Sorry i missed this... i applologize.


Regards Trob70
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top