I have my form set up with a webBrowser control and I am trying to set the .Navigate2 proprty to be the location of a PDF file on the root of C (C:\Sample.pdf). Although I can navigate my IE to this file and open it successfully, I am unable to get the webBrowser object to display the file.
The error message I am receiving is "Invalid Procedure Call or Argument."
Here's the code I am using:
txtContractLoc = "C:\Sample.pdf"
WebBrowser.Navigate2 txtContractLoc
The error message I am receiving is "Invalid Procedure Call or Argument."
Here's the code I am using:
txtContractLoc = "C:\Sample.pdf"
WebBrowser.Navigate2 txtContractLoc