Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if PDF is loaded using MS Browser Control?
Message
 
À
03/03/2003 16:06:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00760445
Message ID:
00760536
Vues:
12
>>We have a form that has the Microsoft Browser Control on it that we use to view PDFs. The application can have other forms open and are linked together so that if a customer is selected on one of the forms all the other forms that are customer driven will be synced up. We are having difficulties determining when the PDF has been loaded so that we can always find our way back to the initial form. Usually we end up on the form with the browser control on it. We have tried many things to accomplish this including, DOEVENTS (even looping), DocumentComplete event, checking the ReadyState etc. It seems as though the loading of the PDF is taking place in another thread that we have no control over. Anyone have any suggestions on what we can look at to resolve this?
>
>I'm not sure what you mean by "...find our way back to the initial form.", but if your goal is only to view PDF file from VFP, it might be overkill to use the browser to add another layer in your application. There are tools that exist to view PDF file directly from VFP such as discussed in thread #627690 and also I'd say West Wind Clients Tools 4.25 does it as well. See File #16023. By simplifying it, you might be able to resolve this issue.

Hi Michel.

To clarify the "...find our way back to the initial form.", a method is run on each form to do the sync which causes each form to get focus. When this process is done, most of the time, the focus stays on the PDF form. The desired behaviour is to keep the PDF viewable inside the application and not to have a seperate browser window opened.

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform