ReportSession
Create a report session.
Syntax
rep_ses=ReportSession()
Arguments
- activePresentation
- Active presentation in the report session.
- delete
- Delete any entity in the session using the entity object.
- get
- Get method on ReportSession to retrieve a handle for any entity.
- getLayouts
- Get a list of the available layouts.
- name
- Create a report session with the given name. The name of a created report session cannot be changed.
- reset
- Resets the report session.
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
........