Skip to content

07 Printouts - Fast Report

How to start

  1. Download fast report designer community https://www.fast-report.com/en/ , https://fastreports.github.io/FastReport.Documentation/FastReportDesignerCommunityEdition.html
  2. Template file should be saved in /template directory in the project {renderer}.frx
  3. Preview
    • .frx.html - HTML required frx template in / template directory
    • .frx.pdf - PDF required frx template in / template directory
    • .frx - report template with data
  4. Creating a new empty template with data /api/srs/{id}/_new.frx
  5. How to bind srs with template http://localhost/api/srs/010-indeksy-aktywne/barcode10x4.frx.html

FAQ Printouts

1. HTML content in Fast Report

TextObject > Properties > Behavior > TextRenderType > HtmlTags Simple html rendering works with <b>, <br/> , <font color="#888888" size="8">Date of issue</font>

2. Check if not empty

JSON
!([JSON.item.header2.item.val1]== null || [JSON.item.header2.item.val1] is DBNull)

3. Format Date

SQL
select convert(varchar, getdate(), 23) -- 2006-12-30

4. Sizable content

Must be set in the properties of the object CanGrow="True"

Text Only
1
2
3
4
5
6
DATABAND
  TextObject

DATABAND
  Container
    TextObject

Properties CanGrow="True"