Using vb6 and the Web Browser Control.
I load a word document into the web browser control.
I try to get the filname of the currently opened file using the following code:
szFullFileName = wb.LocationURL
MsgBox szFullFileName & vbCrLf & wb.LocationURL
szFullFilename will refer to the url of the file in the following format:
This is URL Encoded.
I need to decode the LocationURL to return the actual file name, including a filename which might be UNC.
Any and all help appreciated.
(PS I note that in the wb_DocumentComplete event, the URL value is the actual filename, not the URLEncoded version)