FreeReportv0.9.0English

요소

텍스트, 필드, 선, 사각형, 이미지, 바코드, 차트, 표, 교차표 요소의 공통 속성과 종류별 속성입니다.

이름타입설명
type'text' | 'field' | 'line' | 'rect' | 'image' | 'barcode' | 'chart' | 'table' | 'crosstab'요소 종류.
x, y, w, hnumber밴드 안의 위치와 크기(mm).
idstring선택. 디자이너가 자동으로 붙입니다.
style / styleNameStyle / string인라인 스타일. 이름 붙인 스타일 위에 합쳐집니다.
visibleExpr참일 때만 그립니다.
canGrowboolean글자가 넘치면 아래로 늘어납니다(밴드도 함께).
stretchboolean밴드가 늘어나면 같이 늘어납니다(밴드 바닥에 닿은 요소는 기본).
namestring엑셀 "데이터" 모드의 열 이름.

요소 종류

type속성설명
text{ text }고정 글자 또는 템플릿: "합계 {sum(amount):#,##0}원". {{ }}는 중괄호 자체.
field{ expr, format?, nullText?, suppressRepeated? }수식 하나와 서식. suppressRepeated는 위 행과 같은 값을 숨깁니다.
line{ color?, width?, dash? }(x, y)에서 (x + w, y + h)까지. 가로선은 h = 0. 두께 mm.
rect{ fill?, color?, width?, radius? }사각형. width 0이면 테두리 없음.
image{ src? | expr?, fit? }URL·data: URL 또는 데이터 수식. fit: contain | cover | fill.
barcode{ expr, format?, showText?, ecc?, color? }format: 'code128' | 'ean13' | 'qr' | 'datamatrix' | 'pdf417'. ecc: QR 오류 정정 L/M/Q/H.
chart{ chartType, category, series, source?, title?, legend?, format?, showValues?, stacked? }chartType: 'bar' | 'hbar' | 'line' | 'area' | 'pie' | 'doughnut'.
table{ source, columns, rowHeight?, showHeader?, headerStyle?, footerLabel?, altBackground? }밴드 안의 목록(마스터–디테일). columns: { header, expr, width?, format?, align?, sum? }.
crosstab{ rowKey, columnKey, value, aggregate?, format?, totals?, corner?, source?, cellHeight?, rowHeaderWidth?, headerStyle? }행 × 열 교차표와 합계. aggregate: sum | count | avg | min | max.