ReportSession

Create a report session.

Syntax

rep_ses=ReportSession()

Arguments

activePresentation
Active presentation in the report session.
Type = object
activePresentation = rep_ses.activePresentation
delete
Delete any entity in the session using the entity object.
Type = method
rep_ses.delete(<object>)
get
Get method on ReportSession to retrieve a handle for any entity.
Type = method
entity_obj=rep_ses.get(Entity_class,< "name"> )
getLayouts
Get a list of the available layouts.
Type = method
layoutList = rep_ses.getLayouts()
name
Create a report session with the given name. The name of a created report session cannot be changed.
Type = string
rep_ses=ReportSession(name="ReportSession1")
reset
Resets the report session.
Type = method
rep_ses.reset()

Example

from hw.report.types import *
import os
session = ReportSession(name='MyReportSession')
for layout in session.getLayouts():
    print('Layout = '+layout.name)
    print('Placeholders:')
    print(layout.getPlaceholderInfo())
    print('--------------------')
Layout = Divider Slide - Orange
Placeholders:
Slide Number Placeholder 5 : ['Slide Number', [5, 90, 22, 5]]
Title 1 : ['Center Title', [12, 45, 75, 9]]
None
--------------------
Layout = Two table
Placeholders:
Table1 : ['Table', [55, 33, 42, 62]]
Slide Number Placeholder 2 : ['Slide Number', [5, 90, 22, 5]]
Table2 : ['Table', [4, 18, 46, 50]]
Title 1 : ['Title', [5, 8, 89, 5]]
None
--------------------
Layout = One Table with Text and Image
Placeholders:
Title 1 : ['Title', [5, 8, 89, 5]]
Table Placeholder 4 : ['Table', [4, 18, 60, 62]]
Text Placeholder 5 : ['Text', [5, 82, 89, 7]]
Picture Placeholder 9 : ['Picture', [66, 18, 28, 62]]
None
........