Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft PowerPoint In VFP
Message
De
08/09/2007 03:27:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01253124
Message ID:
01253177
Vues:
30
>It does not work. The presentation does not display.
>
>
>
>>>Can anyone show me how to use the MS PowerPoint ActiveX control in VFP 9?
>>>
>>>I have a small presentation I want to show, and I would like it to open in a VFP window.
>>>
>>>Thanks
>>
>>Place a webbrowser control on form and call navigate2 method:
>>
>>.Navigate2.( "file://"+fullpath("yourppt.ppt") )
>>
>>Though it works I suggest not to open in VFP.
>>Cetin

I don't know why it doesn't work for you. I just tested this and it works wonderfully well here:
lcFile = GETFILE("PPT")
Public oForm
oForm = NewObject('HTMLViewerForm')
oForm.Show

oForm.htmlviewer.navigate2("file://"+m.lcFile)

Define Class HTMLViewerForm As Form
  Height = 500
  Width = 800
  Add Object htmlviewer As OleControl With ;
    Height = 500, Width = 800, Visible = .T., ;
    OleClass = 'Shell.Explorer', anchor=195

  Procedure htmlviewer.Refresh
    Nodefault
  Endproc
Enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform