ReportImageSizeSetting

Image export size properties.

Example

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

    -- Create a PDF quick report (called exampleReport.pdf) and give it a heading

report = app:CreateQuickReport([[temp_exampleReport2]], pf.Enums.ReportDocumentTypeEnum.PDF)
report.DocumentHeading = "Example report"

    -- Set the image export size to Custom and specify a resolution

report.ImageSize.SizeType = pf.Enums.ReportImageSizeEnum.Custom
report.ImageSize.Width = 1600
report.ImageSize.Height = 1200

    -- Generate the document

report:GenerateAndOpen()

Usage locations (object properties)

The following objects have properties using the ReportImageSizeSetting object:

Property List

Height
The height of the exported image. (Read/Write number)
SizeType
The size that should be used to export the image, e.g. SVGA. (Read/Write ReportImageSizeEnum)
Width
The width of the exported image. (Read/Write number)

Property Details

Height
The height of the exported image.
Type
number
Access
Read/Write
SizeType
The size that should be used to export the image, e.g. SVGA.
Type
ReportImageSizeEnum
Access
Read/Write
Width
The width of the exported image.
Type
number
Access
Read/Write