Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Word in a VFP form
Message
De
02/03/2005 07:28:06
 
 
À
02/03/2005 07:08:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00991182
Message ID:
00991908
Vues:
19
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

>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.
>
>FileDownload is rather weird for me. I couldn't even make it evident it's raised. Also I remember it has some error but hard to locate such docs again. As far as I remember it was about it was listing 2 bCancel parameters and event was not raised properly (in .NET?).
>Neither using your code directly or editing mine it's not working for me:( I get the dialog consistently (unless uncheck 'Confirm...' or 'Always ask ...').
>
>Cetin
>
>
>>Cetin,
>>
>>>It might be unintentionally you unchecked "Always ask before ..."?
>>
>>No, I haven't.
>>
>>UPDATE
>>I tried do do a file open (.doc file) in IE and it didn't show the dialog, instead it openned Word in its own window while IE kept showing a blank page.
>>
>>Maybe I unchecked that option, unintentionally as you said. How can I verify this, and if I uncheched, check it again?
>>ENDUPDATE
>>
>>UPDATE 2
>>I entered IE and navigated to a web page where I knew there is a .doc download and clicked in the link to download the .doc file. IE showed the "open/save" dialog.
>>ENDUPDATE 2
>>
>>In my tests it has to do with issuing a DoEvents before the Navigate2.
>>
>>In this 1st case it load many times without showing the dialog:
>>
>>        Procedure cmdLoad.Click
>>*                 ------- -----
>>                  DoEvents
>>
>>                  ThisForm.oleBrowserWin.Navigate2 (cLoadFileName)
>>        EndProc
>>
>>In this other case it doesn't show the dialog box in the first time you press the Load buttom, but show it from the 2nd time on:
>>
>>        Procedure cmdLoad.Click
>>*                 ------- -----
>>*                 DoEvents
>>
>>                  ThisForm.oleBrowserWin.Navigate2 (cLoadFileName)
>>        EndProc
>>
>>I changed the program in order it to ask the file name, and it can load a .doc, .xls, .htm etc, without showing the dialog box:
>>
>>        Procedure cmdLoad.Click
>>*                 ------- -----
>>                  cLoadFileName = GetFile ("", "File Name:", "Select")
>>
>>                  If Empty (cLoadFileName)
>>                     Return
>>                  endif
>>
>>                  ThisForm.Caption = Lower (cLoadFileName)
>>
>>                  DoEvents
>>
>>                  ThisForm.oleBrowserWin.Navigate2 (cLoadFileName)
>>        EndProc
>>
>>Really strange, or the documentation has something missing or there is a bug in the FileDownload event behavior.
>>
>>Regards,
>>
>>Fernando
>>
>>
>>
>>
>>>Fernando,
>>>On my system newer versions of both IE and Word (IE SP2: 6.0.2900.... SP2, Word: 10.4219.4219 SP2). VFP6 SP5,7 SP1,8 SP1.
>>>It might be unintentionally you unchecked "Always ask before ..."?
>>>Cetin
>>>
>>>>Cetin,
>>>>
>>>>Interesting, it really is working for me.
>>>>
>>>>Don't know if it helps:
>>>>
>>>>IE 6.0.2800.1106 xpsp2
>>>>Word 2002 (10.2627.2625)
>>>>VFP 8.0 SP1
>>>>
>>>>and you're right, according to the documentation, "when Cancel is true it doesn't ask but it doesn't open either".
>>>>
>>>>bCancel Boolean that specifies whether to continue the download process and display the download dialog.
>>>>
>>>>false Default. Continue with the download process and display download dialog.
>>>>
>>>>true Cancel the download process.
>>>>
>>>>Source: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/events/filedownload.asp
>>>>
>>>>Fernando
>>>>
>>>>>Good if working for you. Didn't work for me. I actually tried FileDownload before and when Cancel is true it doesn't ask but it doesn't open either (and should be like that according to documentation).
>>>>>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform