![]() Just put this into a separate module and call fHandleFile() with the right parameters. IIf(stRet = "", vbNullString, ", " & stRet) Net 2. VarTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " _ Webbrowser control authenticate not working when access file folder. StFile, vbNullString, vbNullString, lShowHow) LRet = apiShellExecute(hWndAccessApp, vbNullString, _ Once in the components select window scroll down and check the box next to Microsoft Internet Controls and click ok. All you have to do to add it there is to press Ctrl + T key or (Project -> Components using the menu). '****************************************************įunction fHandleFile(stFile As String, lShowHow As Long) First of all the webbrowser control is not one of the controls that come by default in the control box. ' ?fHandleFile("I:\mdbs\CodeNStuff.mdb", Win_NORMAL) ' ?fHandleFile("C:\TEMP\TestThis",Win_Normal) 'Handle Unknown extensions (call Open With Dialog): 'Call Email app: URL: ?fHandleFile("", WIN_NORMAL) 'Open a folder: ?fHandleFile("C:\TEMP\",WIN_NORMAL) Is there a setting or a function that I can use to accomplish this Thx in Advance. '***************Usage Examples*********************** I’m using the WebBrowser control to view local files, whenever I specify a location and files are loaded in the WebBrowser the files are shown in Tiles view, I would like to change that pragmatically to List view. ![]() Private Declare Function apiShellExecute Lib "shell32.dll" _ ' provided the copyright notice is left unchanged. ' You are free to use it in any application, ' It is not to be altered or distributed, To save time having to navigate folders, it helps to assign a folder as your default file location. ' This code was originally written by Dev Ashish. In this view, one item, such as a PivotChart is displayed in the center of the screen, and other items are displayed as thumbnail images along the right-hand side of the screen. If you want a more robust solution with ShellExecute that will open ANY file, folder or URL using the default OS associated program to do so, here is a function taken from : '************ Code Start ********** When you specify a workbook to be displayed using gallery view, it looks like this in a browser window: How gallery view works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |