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

Opening a local PDF file using a link within WebBrowser

I am using WebBrowser in my app.

I load HTML into the WebBrowser in a table format. As part of the data on each line of the table, there is a link to a local PDF file.

I am stuck on the way to code the html so that it opens the local file.....
0
scbdpm
Asked:
scbdpm
  • 2
1 Solution
 
Wayne Taylor (webtubbs)Commented:
Hi scbdpm,

Something like this....

    file:///C:/Documents%20and%20Settings/Wayne%20Taylor/Desktop/YourFile.pdf

Note that spaces must be replaced with %20.

Regards,

Wayne
0
 
Wayne Taylor (webtubbs)Commented:
scbdpm,

Was something not answered? Why the B grade?

See here on grading questions -> http:/help.jsp#hi73

Wayne
0
 
scbdpmAuthor Commented:
well, perhaps I accepted too quckly.... your solution didnt' work from the webbrowser table and then open the pdf.


So, not exactly what I was looking for
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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