Simple Reports PDF

Stable Version 5.3.6 (O11)
Also available for 10, 9.1
Published on 1 Oct (4 weeks ago) by 
Created on 04 July 2016
Documentation


  • PageA4_Portrait:
    • Main Layout web block to print pages. It must be the only web block on your page design
  • HTML_Container:
    • If you need to print HTML inside your page, please use this web block container. It is not mandatory, you can you an expression directly.
  • PageNumber:
    • Use inside your template to print the current page number (Usually inside header or footer)
  • TotalPages:
    • Use inside your template to print the total page number (Usually inside header or footer)
  • PageBreak:
    • To force a page break between elements, use this web block where you want to break



PageA4_Portrait


Placeholders:


  • Header
    • All element inside this area will be repeated on every page
    • Use web blocks as PageNumber or TotalPages here to be printed the current page or total page number
  • Content:
    • All your print content must be put inside this area
    • The script will auto calculate the breaks and split this content among the pages
    • Content Height will be auto calculated by the formula: 
      • Page Height - Header Height - Footer Height - 20px
  • Footer:
    • All element inside this area will be repeated on every page
    • Use web blocks as PageNumber or TotalPages here to be printed the current page or total page number


Properties:


  • ShowPrintMenu:
    • Show print header with page navigation + browser print button
  • ShowExportPDF:
    • Show a Fake button to trigger a notify event when is clicked (to be implemented by dev outside the component, because server side action to generate PDF + download should be done with other components as Html2PDF or UltimatePDF
    • *Demo project has an example with HTML2PDF


OnNotify:


  • To be used with ExportPDF button, to trigger a call to the server to generate and force download the binary file
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Rafael Fantato who created this component.
Dependencies
Simple Reports PDF has no dependencies.