Cetin,
Altering code as below, you can see that FileDownload event fires twice: before the dialog box is shown and after it is shown (and before the document is actually shown).
Procedure oleBrowserWin.FileDownload
LParameters bActiveDocumentCancel, bDialogCancel
MessageBox ("FileDownload")
EndProc
Also there seems to be a problem with the FileDownload event, as can be seen in
http://www.kbalertz.com/Feedback_831306.aspx (there are many references regarding this problem).
VB people (Google search) say the second parameter (bDialogCancel) is not exposed to their apps (I couldn't understand exactly what that mean), and they complain about documentation.
Fernando
PS. Many thanks for your assistance (...and patience)!
>Hmmm then version problem? My versions were newer. I don't know. Would be good if someone else too could confirm it works or not.
>PS: Tested your code directly under VFP8 SP1, while testing mine in VFP7 SP1. Both not working (dialog consistently shows).
>Cetin
>
>>Cetin,
>>
>>>
Launch an explorer window, go to 'Tools\Folder Options' then 'File Types' tab. Locate 'DOC' extension. Click advanced. "Confirm open after download" should be checked.>>
>>Did what you told me. It was already checked.
>>
>>Fernando
>>