PDA

View Full Version : Solved: Webbrowser Navigate Post



Movian
04-25-2011, 12:06 PM
Hey,
hopeful a quick question. Doesn't seem to be a vast number of tutorials around for this control.

I am trying to utilize the Post section of the Navigate function for the webbrowser control.

http://support.microsoft.com/kb/174923

Now my question is the post example i was given to push to this api appears like and XML. Should i be creating an XML string as a byte array for this ?

is there an easy way to do this ?

Any help is appreciated.

Movian
04-25-2011, 12:47 PM
Again a short while later i stumble across the solution. After hours of searching before hand... it's quite frustrating. But not at the same time....


dim tmpdata as string, PostData as byte
tmpData = "Value1=value&value2=Value2"

PostData = tmpData
PostData = StrConv(PostData, vbFromUnicode)
Forms("DoseSpot").Browser.Navigate urlString, Flags, TargetFrame, PostData, Headers