slreportgen.report.Diagram.createTemplate
Class: slreportgen.report.Diagram
Package: slreportgen.report
Create diagram template
Syntax
template = slreportgen.report.Diagram.createTemplate(templatePath,type)
Description
creates a copy of the default diagram template specified by template
= slreportgen.report.Diagram.createTemplate(templatePath
,type
)type
at
the location specified by templatePath
. Use the copied template as
a starting point to design a custom diagram template for your report.
Input Arguments
Output Arguments
Examples
Create a Report Template
Before you run this example, create a copy of the default HTML diagram template in
the mytemplates
folder. Name the copied template
myDiagramReporter.htmtx
. To use the new template, assign its
path to the slreportgen.report.Diagram
TemplateSrc
property.
import slreportgen.report.* rpt = Report('My Report','html'); load_system('slrgex_sf_car') diagram = Diagram('slrgex_sf_car'); template = Diagram.createTemplate('mytemplates\myDiagram','html'); diagram.TemplateSrc = template;
Version History
Introduced in R2017b