Microsoft PowerPoint Functionality |
Contents | |||
Templates | |||
Classes The oiPowerPoint Class Methods Equates |
|||
Dll Functions |
|||
Useful References Tips & FAQs |
|||
Return to the Main Office Inside Docs | |||
Add_MSPowerPoint_Object | |||
Summary | |||
Procedure Extension Template Add an MS PowerPoint object to a procedure Optional |
|||
What does it do? | |||
This template is used
to add MS PowerPoint functionality to a procedure in your app. We are still developing
it and adding functionality to it, more info will come later. |
|||
Prerequisites | |||
You need to have added
the Activate_Office_Inside
global extension template before you can add this template to a procedure. |
|||
How do I implement it? | |||
|
|||
What are my options? |
|||
General Tab: Object Name: This is the name of the Office Inside object that this template will create and implement. Typically this would default to 'MyPowerPoint1', but you can change it if you would prefer to call the object something else.
|
|||
This section describes the various classes which make up "Office Inside". Each class contains methods and properties, which are documented below. Each method is documented by giving the method name, the parameters, an example of how to code the method, a list describing what the method does, and additional comments below.
The oiPowerPoint class is a "wrapper" class, which is used by the templates and by other classes as the "communication" layer between Office Inside and MS PowerPoint. Should you wish to write code which communicates "directly" with MS PowerPoint, this is the class you're looking for.
oiPowerpoint Method Reference | |||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
ClosePresentation
( ) ,byte,proc
|
||||
CountOpenPresentations
( ) ,long
|
||||
EndShow
( )
|
||||
FirstSlide
( )
|
||||
GetInfo
( byte pOption ) ,string,proc
|
||||
Init
( byte pStartVisible=1, byte pEnableEvents=1 ) ,byte,proc
|
||||
Kill
( byte pUnloadCOM=1 ) ,byte,proc
|
||||
LastSlide
( )
|
||||
NextSlide
( )
|
||||
OpenPresentation
( string pFileName, byte pReadOnly=1 ) ,byte,proc
|
||||
PreviousSlide
( )
|
||||
SaveAs (string fileName, long fileFormat, long embedFonts), long The SaveAs method saves the currently loaded and active presentation to a file. The file name and type can both be specified. PowerPoint supports saving as a large variety of files, although not all formats support all the data that can be stored in a presentation. For example you can export the summary to RTF by using SaveAs and setting the fileFormat parameter to oip:ppSaveAsRTF. Parameters fileName - the file name to save the document as (for
example 'PowerPoint Outline.rtf')'
Return Values Simple Example MyPowerPoint1.SaveAs ((LongPath() & '\Test.ppt'), oip:ppSaveAsPresentation, true) Full Example The below example displays a File Dialog for choosing the file name and type (if the user does not enter the file extension then it is appended to the name for them). The extension is then checked and the SaveAs method is called with the fileFormat parameter set to the equate that matches the selected file type. Not that for document with multiple pages selecting an image format such as Bitmap, JPEG, PNG etc. will create a folder with an image for each page. The folder is given the same name as the filename specified in the Save As dialog box. See the DemoC6 example which contains this code. fileFormats string(512) ! String containing the file formats string for a filedialog
|
||||
ViewShow
( )
|
( See csoffice.inc )
At this time we have documented all functions for all the Office components in the "main" OfficeInside.htm document. Click here to go to that section.
This section contains Tips and Frequently Asked Questions pertaining only to the MS PowerPoint parts of Office Inside. For Tips and FAQ's pertaining to the product as a whole, or to other components, please click here.
No MS PowerPoint FAQs yet...