getImageReporter
Class:mlreportgen.report.TitlePage
Package:mlreportgen.report
Get title page image reporter
Syntax
reporter = getImageReporter(tp)
Description
returns a reporter that thereporter
= getImageReporter(tp
)TitlePage
reporter (tp
) uses to format the image specified by theImage
property. You usegetImageReporter
to customize the image position and alignment.
Input Arguments
Output Arguments
Examples
使用默认的标题页图像风格
Create a style for the image on your title page that differs from the default. Before you run this example, create a template file namedMyTitlePageTemplate
and customize itsTitlePageImage
style. Then, usegetImageReporter
and theTemplateSrc
property to use your template.
importmlreportgen.report.*rpt = Report(); tp = TitlePage(); tp.Image ='myImage.jpg'; tp.Image = getImageReporter(tp); tp.Image.TemplateSrc ='MyTitlePageTemplate'; add(rpt,tp);