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

How can i select some files programatically on opening of the web browser control.

Hi
i am ustin PB 8.0.4
my requirement is like this. i have to show a control which should work like microsoft file explorer. where I can see all the files and folders in the specified path. i acheived this by using the olecustom control Microsoft web browser. where by using Navigate i can give any path and i am able to see the content of the path.

but my question is that can i select some files programatically on opening of the web browser control.
please help me.

0
xsysys
Asked:
xsysys
1 Solution
 
diasroshanCommented:
Hi,

im not too sure if this can be achieved using the control.

Guess ull have to look for another workaround.

Cheers,
Rosh
0
 
sandeep_patelCommented:
Here you go.......

oleobject ole_doc,ole_items
long ll_count,ll_items

ole_doc = ole_web.object.document

ole_items = ole_doc.folder.items()

ll_items = ole_items.count()

For ll_count = 0 To ll_items - 1
      If ole_items.item[ll_count].name() = 'file_folder_name' Then
            ole_doc.SelectItem(ole_items.item(ll_count),16)
            ole_doc.SelectItem(ole_items.item(ll_count),1)
      End If
Next

Regards,
Sandeep
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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