Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Viewing PDF In IE Control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01312276
Message ID:
01312357
Views:
22
Did you modify code exactly as I posted? What do you get if you remove TRY...ENDTRY?

>Strange. If I step it through in the debugger, it works fine. If I just let it run, I still see the toolbar and
>side pane.
>
>>
>>Try
>>
>>...
>>		* Load PDF
>>		Thisform.oWB.OBJECT.Navigate2(Thisform.cPdfFileName)
>>		* Wait for load to complete
>>		lnSeconds = SECONDS()
>>		DO WHILE (Thisform.oWB.OBJECT.Busy OR Thisform.oWB.OBJECT.ReadyState <> 4) ;
>>				AND SECONDS() - lnSeconds < 60
>>			DOEVENTS
>>		ENDDO
>>
>>		TRY
>>			loDoc = Thisform.oWB.oBJECT.Document
>>			= loDoc.setPageMode("Page Only")
>>			= loDoc.setShowToolbar(0)
>>		FINALLY 	
>>			loDoc = null
>>		ENDTRY	
>>...
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform