PRIM_PDF - setFillColor Method

Sets the fill color for upcoming elements

Member of PRIM_PDF (PRIM_PDF)

Parameters

Name

Type

Data Type

Description

Color

*Input

Color

RGB color value or a LANSA specified color name

Details

Sets the fill color for upcoming elements.

Example

Set the fill color

     Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait) 

#pdf.start
#pdf.setDrawColor Color(Theme500)
#pdf.setFillColor Color(Theme500)
#pdf.rect Left(10) Top(10) Width(50) Height(30) FillStyle(Fill)

#pdf.save Filename('myReport.pdf')

See also

All Component Classes

Technical Reference