Web Browser Control Navigate

rfreeman

New member
Local time
Today, 13:20
Joined
Oct 4, 2004
Messages
8
Hi,

Im terrible at VB. I cant see why this works:

Application.FollowHyperlink "\\Server\Data\Sample Submittal - COCs\" & Me.OrderID & "_COC.pdf"

And this does not:

Me.Viewer.Navigate ("\\Server\Data\Sample Submittal - COCs\" & Me.OrderID & "_COC.pdf")

.navigate will not recognize OrderID control. I must have the syntax wrong.

Sorry for noobness.

Help is much appreciated.

Ryan
 
I should have given more info.

Both are attached to onclick on a form button.

FollowHyperlink works great.

The web browser control on the same form is named "viewer". I want to use the browser in the form so a full screen copy of acrobat doesnt open to view the file quickly.

I just need to see a thumbnail to verify that the file actually exists.

Thanks.
 
Last edited:
I also tried this:


Dim tmpStr As String
Dim sMyFile As String


sMyFile = "E:\Data\Sample Submittal - COCs\" & Me.OrderID & "_COC.pdf"
tmpStr = "file:///" & sMyFile
Me.Viewer.Navigate (tmpStr)

this stalls on .navigate

Thanks.
 

Users who are viewing this thread

Back
Top Bottom