Jump to content
Sign in to follow this  
EKY32

Embedded PPS Presentation In a GUI

Recommended Posts

EKY32

Hey there, I've searched the forum for that, i found >PP UDF and  was so great but I couldn't find a way to embedded the PowerPoint file in a COM object in a GUI, and even in an IE Object i had to use Microsoft offer and Google offer, but I need to do view the ppt file offline if AutoIt can embedded the file same as IE or SWF..

thank you always..........

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
ahmed9100

Im a beginner 

and the beginner idea is convert the ppt file to avi and use it in autoit 

Share this post


Link to post
Share on other sites
EKY32

Thank you, the pps file has interactive contents that the user should work with, I saw many many other ways on the internet but all the ways are not powerful and should be used online.

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
water

You could give GUICtrlCreateObj a try and see if you can embed the PowerPoint object (created by the PP UDF) the same way as the IE object is embedded in the example script provided by the help file.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
EKY32

You could give GUICtrlCreateObj a try and see if you can embed the PowerPoint object (created by the PP UDF) the same way as the IE object is embedded in the example script provided by the help file.

 

Thank you, i tried that, the object is created but not viewed in the GUI, and when i use $objPresentation.SlideShowSettings.Run.View it appears in a new PP window so if what i want is not possible i think there is a way to attach the pp window into my GUI.


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
EKY32

well, here is the full PowerPoint Object Model Documentation in MSDN but i'm not sure i can find it in this professional mass. :ermm:


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
water

Can you post the script you used?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
EKY32

Ok here is it, just simple as you see but need to be configured in a better way:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$PPS = ObjCreate("PowerPoint.Application")
GUICreate("Embedded PPS control Test")
GUICtrlCreateObj($PPS, 0, 0, 200, 200)
GUISetState()

$PPS.Presentations.Open("C:\Test.pps")

While 1
    $msg = GUIGetMsg()

    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit

    EndSelect
WEnd
Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
water

I tried but was unseccussfull too. Maybe the problem is described in the Remarks section of GUICtrlCreateObj:
 

"This function attempts to embed an 'ActiveX Control' or a 'Document Object' inside the GUI.
Not every control can be embedded. They must at least support an 'IDispatch' interface."


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
trancexx

Use COM error handler for debugging while developing and you will get all the answers.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
water

GUICtrlCreateObj returns:

E_NOINTERFACE - No such interface supported - 0x80004002

Looks like you can't do what you want to do with GUICtrlCreateObj.

  • Like 1

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
EKY32

Thank you all, >_<


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×