jasperreport生成pdf_jasperreport 导出excel_jasperreport json(40)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

isStrikeThrough (true | false) "false"

pdfFontName CDATA "Helvetica"

pdfEncoding CDATA "CP1252"

isPdfEmbedded (true | false) "false"

>

Report Font Name

The name attribute of a <reportFont> element is mandatory and must be unique, because it will be

used when referencing the corresponding report font throughout the report.

Default Report Font

You can use isDefault="true" for one of your report font declarations, to mark the report font that

you want to be used by the reporting engine as the default base font, when dealing with text elements

that do not reference a particular report font. This default font will also be used by the text elements

that do not have any font settings at all.

All the other report font properties are the same as those for a normal <font> element that we are

going to see below.

XML Syntax

<!ELEMENT font EMPTY>

<!ATTLIST font

reportFont NMTOKEN #IMPLIED

fontName CDATA #IMPLIED

size NMTOKEN #IMPLIED

isBold (true | false) #IMPLIED

isItalic (true | false) #IMPLIED

isUnderline (true | false) #IMPLIED

isStrikeThrough (true | false) #IMPLIED

pdfFontName CDATA #IMPLIED

pdfEncoding CDATA #IMPLIED

isPdfEmbedded (true | false) #IMPLIED

>

Referencing a Report Font

When introducing the font settings for a text element of your report, you have the possibility to use a

report font declaration as a base, for those font settings you want to obtain.

All the attributes of the <font> element, if present, are used only to override the attributes with the


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-40.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...