ReportTemplateTagSettings

The report template tag and associated window settings.

Example

app = pf.GetApplication()
app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.pfs]])

    -- Only generate the report if Microsoft Word is installed
    
if ( app.MSWordInstalled ) then

    -- Add a Word 2007 report template to the POSTFEKO session
    
    reportTemplate = app.Reports:Add(
    FEKO_HOME..[[/shared/Resources/Automation/StartupModel.dotx]], 
    pf.Enums.ReportDocumentTypeEnum.MSWord)    

    -- Extract the tags from the template document and get a list of the open windows in the 
    -- current session
    
    reportTemplate.TagSettings[1].Window = "startup1"
    reportTemplate.TagSettings[2].Window = "Cartesian graph1"

    -- Generate the report
    
    reportTemplate:Generate([[temp_StartupModelReport.docx]])
end

Usage locations

The ReportTemplateTagSettings object can be accessed from the following locations:

Property List

Tag
The tag extracted from the template file associated with the 'Window' property. (Read only string)
Window
The window that should be included in the report at the associated tag. (Read/Write string)

Property Details

Tag
The tag extracted from the template file associated with the 'Window' property.
Type
string
Access
Read only
Window
The window that should be included in the report at the associated tag.
Type
string
Access
Read/Write