Hello
we have a problem in power builder 2017 or power builder 11.5 with internet explorer and edge.
Using the ole_browser object of type microsoft web browser and using microsoft internet explorer as web browser it works and we can upload files to a java servlet connecting as follows:
ole_object_upload.object.connecttonewobject("InternetExplorer.Application")
ole_object_upload.object.Navigate(ls_url,0,4,lblobParam,lBlobHeader)
ole_object_upload.object.disconnectobject( )
Being ls_url the URL of the servlet, for example "https://xxxxxxxxxxxxxxxxx", in the BLOB field we send the attached file.
However, disabling Microsoft Internet Explorer in Windows 10 and setting Microsoft Edge as the default browser and enabling Edge Compatibility Mode with Microsoft Internet Explorer works randomly and does not give any errors.
We have tried to Change this: connecttonewobject("InternetExplorer.Application") by connecttonewobject("Edge.Application") and it doesn't work or give an error.
Thanks
My answer to your question is yes. I do this to send a file to the server.
I have some questions.
Does the Ole Browser object have to be of a specific type? Mine is of type 'Microsoft Web Browser'.
Are the username and password of the Open function not mandatory? It could be called like this?: "lole_XmlHttp.Open("POST", ls_url, FALSE)"
I've tried it on PB 11.5 and PB 2017 and it doesn't work for me, it fails when calling the Open function. The error it gives me is: "Name not found calling external object function open".
I have tested it with this code:
ole_doc.object.ConnectToNewObject ("Msxml2.XMLHTTP")
ole_doc.object.Open ("POST", ls_url, FALSE)
ole_doc.object.Send (lblobparam)
ole_doc.object.DisconnectObject ()
Thank you very much.
The XMLHttp object is not a control that you can embed like the webbrowser control.
Use OLEObject instead. I will enhance my posting to show it.