WebBrowser Control

Tallica

Registered User.
Local time
Today, 15:22
Joined
Jul 27, 2010
Messages
26
I am using a web browser activex control on a form to display the files and folders of a given path like windows explorer.

Is there a way to get the filename of the the user selected file in the control?

Thanks in Advance for any help.
 
I need to see all the files in a given folder at all times. I need to be able to drag the files to an email as an attachmanet or other application for processing also. I just was hoping for a way to know which file has been selected in the control for special processing from a command button. I will find a work around.

Thanks for the sample resource though.
 
It is possible to load the treeview control with a contents of a folders.

I have used drag and drop with the Treeview Control. I have not tried to drag from an Access form to other Applications.

Do you think the treeview control is an option?
 
I am using a web browser activex control on a form to display the files and folders of a given path like windows explorer.

Is there a way to get the filename of the the user selected file in the control?

Thanks in Advance for any help.


I am working on the same thing and want to use the webbrowser because it will show a thumbnail of images. I don't believe the standard file open does that so the responce you got to do a file open probably isn't what I need and is not the answer to your original question.

Have you made any progress on the original question??
 
I am working on the same thing and want to use the webbrowser because it will show a thumbnail of images. I don't believe the standard file open does that so the responce you got to do a file open probably isn't what I need and is not the answer to your original question.

Have you made any progress on the original question??

Yes the standard Windows File dialog in my example allows you to show thumbnails. I use it all this time.

Have you tried it?
 
Two things I am confused about.

1. There are constant reffs to the:

"webbrowser control" with sub properties "Document" and "Navigate" and further "ActiveElement"

Since when did these properties exist for a "webbrowser control" because I would like to use them. They aren't explicitly listed and don't pop up when using "intleisence"

2. If I use the file open dialog box to indicate a file to Access for some action, how can I eliminate the drag feature and the other icons such as Network and all the other stuff I don't want the user to mess with.

I need the Open box static with a set size.

This is why I wanted to use the "WebBrowser" control and not "File Open Dialog"


Any thougts?

Thanks!
 
Cosmo,

Are you using Access 2010 and the new native browser control?

Two things I am confused about.

1. There are constant reffs to the:

"webbrowser control" with sub properties "Document" and "Navigate" and further "ActiveElement"

Since when did these properties exist for a "webbrowser control"
AFAIK these have always been required functions for a web browser.

"Navigate" is how to go to a UTL (web page)

"Document" is the HTML (the web page source file) that is displayed from the place you where you told the web browser to "Navigate".
 
Last edited:
HA HA I GOT IT HOT DAMN.

There are TWO webbrowser controls. One is part of the controls menu and is not an active X. The other with more functionallity is listed under Microsoft WebBrowser under more and is an Active X.

Bloody hell its taken me a week to find out there are two "WebBrowser controls"

Glory Glory

Tah
 
Ok, there are some functions I can't seem to use.
I don't know if its because they are for straight visual basic - no "A"

or what

Check out this MS site for "WebBrowser control" listed below

I can't use "DocumentTitle" or "DocumentText"

Additionally, the syntax is

value = WebBrowser.DocumentText

I have been just doing:

WebBrowser0.navigate "c:\so and so"

no status variable - what Iam I missing???


http://msdn.microsoft.com/en-us/library/w290k23d(v=vs.85).aspx
 
Cosmo,

Are you suing Access 2901 and the new native browser control?


AFAIK these have always been required functions for a web browser.

"Navigate" is how to go to a UTL (web page)

"Document" is the HTML (the web page source file) that is displayed from the place you where you told the web browser to "Navigate".

---------------------

I am using version14.0.5128.5000 32 bit and yes I have tryied the native webbrowser control as well as the Microsoft Active X webbrowser control

Note I am "focusing" on files in a directory and not an HTML site file.

Text672 = Me.WebBrowser0.Document.activeelement.innertext

Thats my code but the document part is always unrecognized by Access??

Thanks
 
That makes a lot of sense. I would not expect there to be a document property in a file browser. I would expect the Document properly is only be valid when viewing some type of document object. Like a Word processing Document or an HTML Document. A web Browser or Web Browser control's native files that it is design to display is a HTML document. When doing this you can use all the power of a Web Browser.

A web browser can view lots of other different file types by loading other programs using the Windows File Associations like Adobe Acrobat. It can also load Windows Explorer. AFAIK, Windows Explorer does not have a Document Property that is the same as an HTML document or a Word file.
 
I just did a quick test -
using the standard system OpenFile dialog you can drag-drop files to other places (also into a mail message)

seems you'r trying to force the WebBrowser things it was not built too
 

Users who are viewing this thread

Back
Top Bottom