INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

XmlLoad Windows8

XmlLoad Windows8

(OP)
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

RE: XmlLoad Windows8

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.

RE: XmlLoad Windows8

(OP)
Many thanks for your interest

The error comes when running xmldoc.Load Path

Regards Trob70

RE: XmlLoad Windows8

That's interesting. What was the error number and message?

RE: XmlLoad Windows8

(OP)
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 = "https://xyz.com/pagedata/rrr/" & 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

RE: XmlLoad Windows8

Good to know though. Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close