Hello
Using PB 2022 R3 build 3356
I need to open a file ( pdf, jpg) from a network drive, which has NOT been mapped as a local drive. The file is selected by the end-user, whose path and name is obtained from GetFileOpenName command. The returned path is in the form of
\\computername\e\somefolder\somefile.pdf
Or
\\computername\e\somefolder=somefile.jpg
I try to open this file using
wb_1.navigate('file:///' + ls_path)
which return 'File Not Found error' in the webbrowser.
However if the user select a file from the local drive, it works fine. It also works fine, if the network drive is mapped as a local drive and then select the file from the mapped drive.
It failed to open the file, only if the file name (path) starts with //.
Should there be another way to open a file from a network drive.
Is there anyway to open that file?
Happiness Always
BKR Sivaprakash
wb_1.navigate('file:' + ls_path) is working.