• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

vb.net WebBrowser1.Navigate Question network share

Need to navigate this vb.net component to a hidden networkshare like:
"\\server\folder name$\file.pdf"

WebBrowser1.Navigate(??)
0
HelpdeskJBC
Asked:
HelpdeskJBC
  • 2
  • 2
1 Solution
 
CodeCruiserCommented:
Did you try

WebBrowser1.Navigate("\\server\folder name$\file.pdf")
?
0
 
HelpdeskJBCAuthor Commented:
It will work with the "OpenFileDialog1.FileName"
"U:\PDFProject\File\Manual abc.pdf"

but not with my filelocation on a hidden share:
"\\servername\pdftemp$\User name\Office Manual abc.pdf"

The difference must be in the fileurl dimension:

 '{file:///U:/PDFProject/File/Manual abc.pdf%23toolbar=0&navpanes=0}

 '{file://server/pdftemp$/User Name/Manual abc.pdf%23toolbar=0&navpanes=0}

whats the problem with the url? could it be that the "\\" "//" at the beginning makes some troubles?
0
 
CodeCruiserCommented:
I think it could be the $ sign. Does it work if you replace $ with %24 ? Also try matching the ///.
0
 
HelpdeskJBCAuthor Commented:
may someone can try this on their own?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now