export_report_as_pptx#
- ADR.export_report_as_pptx(*, filename: str | Path = None, context: dict | None = None, item_filter: str = '', **kwargs: Any) None#
Render a PPTX report and write it to disk.
If
filenameis not provided, the template’soutput_pptxproperty is used, or a fallback based on the template GUID.- Parameters:
- filename
strorPath,optional Target PPTX filename. If omitted, use the template’s
output_pptxproperty or"<guid>.pptx".- context
dict,optional Context to pass to the report template.
- item_filter
str,optional ADR filter applied to items in the report.
- **kwargs
Any Additional keyword arguments to pass to the report template. Eg: guid, name, etc. At least one keyword argument must be provided to fetch the report.
- filename
- Returns:
- Raises:
ADRExceptionIf no keyword arguments are provided or if the template is not of type PPTXLayout or if the report rendering fails.
Examples
>>> from ansys.dynamicreporting.core.serverless import ADR >>> adr = ADR(ansys_installation=r"C:\Program Files\ANSYS Inc\v252", db_directory=r"C:\DBs\docex") >>> adr.setup() >>> adr.export_report_as_pptx(name="Serverless Simulation Report", item_filter="A|i_tags|cont|dp=dp227;")